R语言使用小技巧

安装包

install.packages("lavaan", dependencies = TRUE)  # 安装lavaan包
library(lavaan)   # 载入lavaan包

lavaan包的使用教程
链接: link

如果出现类似于

> install.packages("semPlot", dependencies = TRUE) 
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/semPlot_1.1.6.zip'
Content type 'application/zip' length 348299 bytes (340 KB)
downloaded 340 KB

按照给出的链接下载压缩包,然后用下列代码进行安装

install.packages("path/to/semPlot_1.1.6.zip", repos = NULL)

你可能感兴趣的:(r语言,python)