在R中安装devtools包时later.cpp中出错

在R中安装devtools包时later.cpp中出错,r,devtools,install.packages,R,Devtools,Install.packages,我正在尝试安装devtools包。我看到了其他相关的问题,但找不到任何解决我的错误的方法 这是我的sessionInfo() 我所尝试的: > install.packages('devtools', dependencies = TRUE) * installing *source* package ‘later’ ... ** package ‘later’ successfully unpacked and MD5 sums checked ** using staged insta

我正在尝试安装devtools包。我看到了其他相关的问题,但找不到任何解决我的错误的方法

这是我的sessionInfo()

我所尝试的:

> install.packages('devtools', dependencies = TRUE)
* installing *source* package ‘later’ ...
** package ‘later’ successfully unpacked and MD5 sums checked
** using staged installation
Running configure script
-latomic linker flag needed.
** libs
g++ -m32 -std=gnu++0x -I"/usr/include/R" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/usr/lib/R/library/Rcpp/include" -I"/usr/lib/R/library/BH/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c RcppExports.cpp -o RcppExports.o
g++ -m32 -std=gnu++0x -I"/usr/include/R" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/usr/lib/R/library/Rcpp/include" -I"/usr/lib/R/library/BH/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c callback_registry.cpp -o callback_registry.o
g++ -m32 -std=gnu++0x -I"/usr/include/R" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/usr/lib/R/library/Rcpp/include" -I"/usr/lib/R/library/BH/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c debug.cpp -o debug.o
gcc -m32 -std=gnu99 -I"/usr/include/R" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/usr/lib/R/library/Rcpp/include" -I"/usr/lib/R/library/BH/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fpic -fPIC   -c init.c -o init.o
g++ -m32 -std=gnu++0x -I"/usr/include/R" -DNDEBUG -pthread -DSTRICT_R_HEADERS -I"/usr/lib/R/library/Rcpp/include" -I"/usr/lib/R/library/BH/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c later.cpp -o later.o
In file included from later.cpp:13:
callback_registry_table.h: In member function ‘void CallbackRegistryTable::create(int, int)’:
callback_registry_table.h:73: error: ‘nullptr’ no se declaró en este ámbito
(...)
make: *** [later.o] Error 1
ERROR: compilation failed for package ‘later’
* removing ‘/usr/lib/R/library/later’
Warning messages:
1: In install.packages("devtools", dependencies = TRUE) :
  installation of package ‘later’ had non-zero exit status

我下载了软件包并进行了尝试,但出现了类似的错误

> install.packages('devtools_2.3.2.tar.gz', repos=NULL, type="source")
Installing package into ‘/usr/lib/R/library’
(as ‘lib’ is unspecified)
ERROR: dependency ‘DT’ is not available for package ‘devtools’
* removing ‘/usr/lib/R/library/devtools’
Warning message:
In install.packages("/root/devtools_2.3.2.tar.gz", repos = NULL,  :
  installation of package ‘/root/devtools_2.3.2.tar.gz’ had non-zero exit status
我做错了什么?谢谢

> install.packages('devtools_2.3.2.tar.gz', repos=NULL, type="source")
Installing package into ‘/usr/lib/R/library’
(as ‘lib’ is unspecified)
ERROR: dependency ‘DT’ is not available for package ‘devtools’
* removing ‘/usr/lib/R/library/devtools’
Warning message:
In install.packages("/root/devtools_2.3.2.tar.gz", repos = NULL,  :
  installation of package ‘/root/devtools_2.3.2.tar.gz’ had non-zero exit status