Tips for using R language

Installation package

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

The tutorial
link of the lavaan package: link

If something like

> 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

Follow the given link to download the compressed package, and then install it with the following code

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

Guess you like

Origin blog.csdn.net/weixin_44836370/article/details/130768235