[问题] 安装RcppBDT遇到error

楼主: cywhale (cywhale)   2015-12-29 15:00:07
文章分类提示:
- 问题: 当你想要问问题时,请使用这个类别
安装RcppBDT 直接用install.packages("RcppBDT") Version: 0.2.3
若用install_github("eddelbuettel/rcppbdt") Version: 0.2.3.2
但后者install_github 我在linux(centos)下有装成功,
但在win7下安装则会出现错误讯息:
toPOSIXct.cpp: In function
'Rcpp::DatetimeVector cToPOSIXct(Rcpp::CharacterVector)':
toPOSIXct.cpp:229:45: error: 'strptime' was not declared in this scope
make: *** [toPOSIXct.o] Error 1
查不太到相关错误讯息,不知道有没有办法可以解此安装上的问题,谢谢~~~
[环境叙述]:
请提供 sessionInfo() 的输出结果,
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] RcppBDT_0.2.3 BH_1.60.0-1 devtools_1.9.1
loaded via a namespace (and not attached):
[1] httr_1.0.0 R6_2.1.1 magrittr_1.5 tools_3.2.2
[5] curl_0.9.4 Rcpp_0.12.2 memoise_0.2.1 codetools_0.2-14
[9] stringi_1.0-1 stringr_1.0.0 digest_0.6.8
[关键字]:
作者: celestialgod (天)   2015-12-29 15:34:00
windwos的Rtools里面的library没有strptime...似乎要有额外的函式库稍微找了一下,cygwin可能有
楼主: cywhale (cywhale)   2015-12-29 15:54:00
感谢C大,刚在原始码的注解(最后一段)也看到这样的说明https://goo.gl/R3OAYB TODO: make the R-internalTODO: make the R-internal strptime accessible...
作者: celestialgod (天)   2015-12-29 16:13:00
他可能会用Rcpp::Function strptime("strptime")...在windows编译source code就有这种麻烦事情(叹气
作者: Wush978 (拒看低质媒体)   2015-12-29 20:17:00
自己改一改后发个issue or PR 给Dirk 吧!Dirk 人很nice
楼主: cywhale (cywhale)   2015-12-29 21:44:00
XDD ya.. it's also one solution..

Links booklink

Contact Us: admin [ a t ] ucptt.com