R软件包安装上的gcc警告

时间:2018-09-21 21:23:39

标签: c++ r installation-package

我正在尝试在Debian docker容器上安装R。我似乎已成功安装R(apt-get install -y r-base)。然后我安装像这样的软件包:

RUN Rscript -e "install.packages(c('lintr', 'tidyr', 'plyr', 
'dplyr','reshape', 'ggplot2'), \
            dependencies=TRUE, \
            repos='http://cran.rstudio.com/')"

但是,我收到一堆gcc的“已弃用”和“重新定义”警告,如下所示:

In file included from /usr/local/lib/R/site-library/BH/include/boost/scoped_ptr.hpp:13:0,
             from ../inst/include/dplyr/Result/GroupedHybridCall.h:4,
             from ../inst/include/dplyr/Result/GroupedCallProxy.h:9,
             from slice.cpp:8:/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/scoped_ptr.hpp:74:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
 explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_SP_NOEXCEPT : px( p.release() )

我想确定什么是C / C ++正确版本,但我真的不知道如何进行。我应该考虑一些有关R的C ++ / gcc要求的信息吗?我尝试更新gcc,但得到的却是最新版本(4:6.3.0-4)。

谢谢!

0 个答案:

没有答案