Open ghost opened 6 years ago
Hi Lixing. Can you you post the error message?
You may also want to try `skygrowth' which may be easier to use. https://github.com/mrc-ide/skygrowth
install_github("emvolz-phylodynamics/skyspline") Downloading GitHub repo emvolz-phylodynamics/skyspline@master from URL https://api.github.com/repos/emvolz-phylodynamics/skyspline/zipball/master Installing skyspline Installing 1 package: ggplot2 Installing package into ‘C:/Users/xingguang/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.5/ggplot2_3.0.0.zip' Content type 'application/zip' length 3579961 bytes (3.4 MB) downloaded 3.4 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\xingguang\AppData\Local\Temp\RtmpaEfR2x\downloaded_packages Installing 1 package: RcppArmadillo Installing package into ‘C:/Users/xingguang/Documents/R/win-library/3.5’ (as ‘lib’ is unspecified) trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.5/RcppArmadillo_0.8.600.0.0.zip' Content type 'application/zip' length 2262528 bytes (2.2 MB) downloaded 2.2 MB
package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\xingguang\AppData\Local\Temp\RtmpaEfR2x\downloaded_packages "C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL \ "C:/Users/xingguang/AppData/Local/Temp/RtmpaEfR2x/devtoolsf4069ad4808/emvolz-phylodynamics-skyspline-46512fe" \ --library="C:/Users/xingguang/Documents/R/win-library/3.5" --install-tests
I tried many times, but failed to install it, could you please figure it out, thanks.
The package hasn't been tested on windows. If you have access to linux or mac, can you try installing on that?
Can you post the output of
sessionInfo()
It's possible this would work with a more recent version of R.
I also suggest updating to most recent possible version of Rtools.
sessionInfo() R version 3.5.0 (2018-04-23) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] Matrix_1.2-14
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0 yaml_2.1.19 grid_3.5.0
[5] lattice_0.20-35
I cleaned up the code in latest version (fc98171b937a9a390856b92defe724c75687075c) This was suggested by @richfitz. Can you checkout the latest and let me know if it compiles?
@emvolz ,thanks, I will checkout it now.
install_github("emvolz-phylodynamics/skyspline") Downloading GitHub repo emvolz-phylodynamics/skyspline@master from URL https://api.github.com/repos/emvolz-phylodynamics/skyspline/zipball/master Installing skyspline "C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL \ "C:/Users/xingguang/AppData/Local/Temp/RtmpisFPfL/devtools3ac87a901282/emvolz-phylodynamics-skyspline-3b4957a" \ --library="C:/Users/xingguang/Documents/R/win-library/3.5" --install-tests
@emvolz, error was the same as @sdwfrost
This is I think a reference to a fortran library on linking. See https://github.com/RcppCore/RcppArmadillo/blob/34cafa7aaba76afe132e14627ee2cc171131b822/man/RcppArmadillo-package.Rd#L56-L59 - this will likely need adding to Makevars
and Makevars.win
@richfitz can you solve this problem, thanks.
I try to install the package "skyspline" using command install_github("emvolz-phylodynamics/skyspline") many times in window system. I fail to install it, could you please tell me how to deal with it, thanks.