我已经查阅了与我的特定问题相关的现有条目,但仍然无法解决它。
我试图在我工作的机器上这样做,我有有限的管理员权限,但我可以运行Rtools.exe,所以我安装了它。
我对R的设置是:
 platform       x86_64-w64-mingw32          
 arch           x86_64                      
 os             mingw32                     
 system         x86_64, mingw32             
 version.string R version 3.3.0 (2016-05-03)我是RStudion版本0.99.902。我安装了Rtools版本3.3.0.1959。
所有的R、Rstudio和Rtools都安装在C:/WORK/中,我在这个目录中有一些有限的管理权限。
在我的系统ENV变量中,我设置了:
 C:\\WORK\\Rtools\\bin; C:\\WORK\\Rtools\\gcc-  4.6.3\\bin; C:\\WORK\\R-3.3.0\\bin\\x64;" 当我跑的时候
 system('where make')我得到了
 C:\WORK\Rtools\bin\make.exe当我跑的时候
 system('g++ -v')我得到了:
 Using built-in specs.
 COLLECT_GCC=C:\WORK\Rtools\GCC-46~1.3\bin\G__~1.EXE
 COLLECT_LTO_WRAPPER=c:/WORK/rtools/gcc-46~1.3/bin/../libexec/gcc/i686-w64-   mingw32/4.6.3/lto-wrapper.exe
 Target: i686-w64-mingw32
 Configured with: /data/gannet/ripley/Sources/mingw-test3/src/gcc/configure --host=i686-w64-mingw32 --build=x86_64-linux-gnu --target=i686-w64-mingw32 --with-sysroot=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/mingw32 --prefix=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/mingw32 --with-gmp=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --with-mpfr=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --with-mpc=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --disable-shared --enable-static --enable-targets=all --enable-languages=c,c++,fortran --enable-libgomp --enable-sjlj-exceptions --enable-fully-dynamic-string --disable-nls --disable-werror --enable-checking=release --disable-win32-registry --disable-rpath --disable-werror CFLAGS='-O2 -mtune=core2 -fomit-frame-pointer' LDFLAGS=
 Thread model: win32
 gcc version 4.6.3 20111208 (prerelease) (GCC) 当我编译时,我得到这个错误:
 Error in compileCode(f, code, language = language, verbose = verbose) : 
 Compilation ERROR, function(s)/method(s) not created!
 c:/Rtools/mingw_64/bin/g++: not found我的问题是:为什么R还在寻找g++
 c:/Rtools/mingw_64/bin/g++我不是已经把R设置成在
 C:/WORK/Rtools? 即使我手动添加了
 c:/WORK/Rtools/mingw_64/bin/g++在ENV变量中,我仍然得到相同的错误。(由于管理员权限,我无法在C:/中创建Rtools文件夹。)
有没有人遇到过这个特定的问题?
发布于 2016-08-23 10:23:59
正在发生的事情是需要在R 3.3.x的RTools 34和上运行,而不是在 33上。
删除rtools安装,然后按照此处的指导进行操作:
http://thecoatlessprofessor.com/programming/rcpp/install-rtools-for-rcpp/
@David,您需要删除C:\WORK\Rtools\<something>的所有实例和任何重复的实例(例如C:\WORK\R-3.3.0\bin\x64出现两次)。然后添加:
工作c:\
\r工具\bin;c:\WORK\Rtools\mingw_32\bin;
https://stackoverflow.com/questions/39090983
复制相似问题