0

早上好,

我正在尝试使用包 devtools 通过 RStudio1.4 从 GitHub 存储库“NegriLuca/fdaPDE-manifold”安装 R 包 fdaPDE。我的操作系统是 Windows 10,我使用的是 Rtools35 和 R3.5.1。该包必须从源代码编译。我输入了以下内容:

    install.packages('devtools')
    library(devtools)
    install_github("NegriLuca/fdaPDE-manifold")

并得到以下信息:

    [… I omit the long compilation part …]
    ** building package indices
    ** testing if installed package can be loaded
    *** arch - i386
    Error: package or namespace load failed for 'fdaPDE'inlibrary.dynam(lib, package, package.lib):
    DLL 'fdaPDE' not found: maybe not installed for this architecture?
    Errore: loading failed
    Esecuzione interrotta
    *** arch - x64
    Error: package or namespace load failed for 'fdaPDE' in library.dynam(lib, package, package.lib):
    DLL 'fdaPDE' not found: maybe not installed for this architecture?
    Errore: loading failed
    Esecuzione interrotta
    ERROR: loading failed for 'i386', 'x64'
    * removing 'C:/Users/Gianmaria/Documents/R/win-library/3.5/fdaPDE'
    In R CMD INSTALL
    Error in i.p(...) : 
    (converted from warning) installation of package ‘C:/Users/GIANMA~1/AppData/Local/Temp/RtmpwDxgqJ/file466865be7d8c/fdaPDE_0.1-5.tar.gz’ had non-zero exit status

我能做些什么来解决这个问题?

4

1 回答 1

0

我终于设法安装了该软件包。我所做的是以下内容:

- 通过输入 Rstudio 删除以前的安装(我本以为会自动完成,但事实并非如此,而且我安装了旧版本)

remove.packages("fdaPDE") 

- 在 Windows cmd 中,从 Github 下载代码后,键入

"Path/to/Rfolder/R" CMD BUILD <path to folder fdaPDE>

"Path/to/Rfolder/R" CMD INSTALL -l <path name of the R library tree> <path name of the package to be installed>

希望这可能对面临类似错误的其他人有用。

于 2018-11-27T10:34:43.130 回答