我首先从最近的镜子下载rserve,然后加载库,这给我这个错误
> install.packages("Rserve")
Installing package into ‘C:/Users/abc/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.4/Rserve_1.7-3.zip'
Content type 'application/zip' length 632080 bytes (617 KB)
downloaded 617 KB
package ‘Rserve’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:UsersabcAppDataLocalTempRtmpmGy9pGdownloaded_packages
> Rserve()
Error in Rserve() : could not find function "Rserve"
安装R
软件包不同于将软件包附加到计算机的内存中。作为一个类比,请考虑安装软件程序(例如,从CD)。将程序安装到计算机上后,您需要将其打开以使用它。
将R
软件包连接到计算机内存的方法是:library(package name)
,其中"软件包名称"被您要加载的任何软件包替换。例如,您将library(Rserve)
放在脚本开头的某个地方。