打开库Rserve时出现此错误

时间:2017-09-20 04:30:58

标签: r rserve

我首先从最近的镜像下载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:\Users\abc\AppData\Local\Temp\RtmpmGy9pG\downloaded_packages
    > Rserve()
    Error in Rserve() : could not find function "Rserve"

1 个答案:

答案 0 :(得分:1)

安装R包与将包附加到计算机内存不同。作为一个类比,考虑安装一个软件程序(例如,从CD)。将程序安装到计算机上后,需要将其打开才能使用它。

R程序包附加到计算机内存的方法是:library(package name),其中“程序包名称”将替换为您要加载的程序包。例如,您可以将library(Rserve)放在脚本开头的某个位置。