【问题标题】:loading failed in installing R package fdaPDE from github从 github 安装 R 包 fdaPDE 加载失败
【发布时间】:2018-10-27 08:58:42
【问题描述】:

早上好,

我正在尝试使用包 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

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

【问题讨论】:

  • This thread 表示更新包可能有效。
  • 我更新了所有包,但安装时出现同样的错误
  • 你安装了fdaPDE 包吗?
  • 不,fdaPDE 是我要安装的库。编译似乎继续,但加载测试失败

标签: r rtools


【解决方案1】:

我终于设法安装了这个包。我所做的如下:

-通过输入 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>

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-08-18
    • 1970-01-01
    • 1970-01-01
    • 2021-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多