首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Debian Jessie上安装roxygen2

无法在Debian Jessie上安装roxygen2
EN

Stack Overflow用户
提问于 2016-10-12 15:35:43
回答 1查看 433关注 0票数 1

当我试图安装roxygen2时,我得到:

代码语言:javascript
复制
> sudo Rscript -e 'install.packages("roxygen2", repos="http://mirrors.dotsrc.org/cran/")'         
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://mirrors.dotsrc.org/cran/src/contrib/roxygen2_5.0.1.tar.gz'
Content type 'text/plain' length 106197 bytes (103 Kb)
opened URL
==================================================
downloaded 103 Kb

* installing *source* package ‘roxygen2’ ...
** package ‘roxygen2’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c isComplete.cpp -o isComplete.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c leadingSpaces.cpp -o leadingSpaces.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c parser2.cpp -o parser2.o
parser2.cpp: In function ‘Rcpp::CharacterVector find_includes(std::string)’:
parser2.cpp:165:35: error: too many arguments to function ‘void Rcpp::stop(const string&)’
     stop("Failed to open %s", path);
                                   ^
In file included from /usr/lib/R/site-library/Rcpp/include/RcppCommon.h:131:0,
                 from /usr/lib/R/site-library/Rcpp/include/Rcpp.h:27,
                 from parser2.cpp:1:
/usr/lib/R/site-library/Rcpp/include/Rcpp/exceptions.h:195:17: note: declared here
     inline void stop(const std::string& message) {
                 ^
/usr/lib/R/etc/Makeconf:137: recipe for target 'parser2.o' failed
make: *** [parser2.o] Error 1
ERROR: compilation failed for package ‘roxygen2’
* removing ‘/usr/local/lib/R/site-library/roxygen2’

The downloaded source packages are in
    ‘/tmp/RtmpSn8jzt/downloaded_packages’
Warning message:
In install.packages("roxygen2", repos = "http://mirrors.dotsrc.org/cran/") :
  installation of package ‘roxygen2’ had non-zero exit status

我尝试了几次不同的回复,但结果总是一样的。在repos中发布的版本有问题吗?我还能做什么呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-10-12 15:40:11

Hadley注意到了其他包中的这个问题,并在Github线程上声明,解决方案是使用Rcpp的开发部分,即

代码语言:javascript
复制
install_github("RcppCore/Rcpp")

因此,升级Rcpp然后完全关闭所有RStudio和R进程,然后重新启动和重新安装roxygen2

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40002688

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档