Microsoft R Open + 包编译期间的换行符
Microsoft R Open + line breaks during package compilation
由于某些奇怪的原因,Microsoft R Open 的最新版本无法编译各种包,因为某些东西(我认为是 Rcpp)会产生多个 R 会话,并且重复调用以清除终端 window 在编译器命令中间引入换行符。见下文。似乎没有可靠的方法来完全抑制冗长的启动消息,这似乎是导致此错误的原因。
请注意 /opt/microsoft/ropen/4.0.2/lib64/R/bin/R CMD INSTALL
和 /opt/microsoft/ropen/4.0.2/lib64/R/bin/Rscript
也会发生同样的情况
想法?建议?
$ /opt/microsoft/ropen/4.0.2/lib64/R/bin/R -q
> install.packages('minqa')
Installing package into ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 53548 100 53548 0 0 247k 0 --:--:-- --:--:-- --:--:-- 247k
Microsoft R Open 4.0.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2020 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing (using 44 cores).
Default CRAN mirror snapshot taken on 2020-07-16.
See: https://mran.microsoft.com/.
* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fpic -g -O2 -c altmov.f -o altmov.o
gfortran -fpic -g -O2 -c bigden.f -o bigden.o
gfortran -fpic -g -O2 -c biglag.f -o biglag.o
gfortran -fpic -g -O2 -c bobyqa.f -o bobyqa.o
gfortran -fpic -g -O2 -c bobyqb.f -o bobyqb.o
gfortran -fpic -g -O2 -c lagmax.f -o lagmax.o
g++ -I/opt/microsoft/ropen/4.0.2/lib64/R/include -DNDEBUG -I'/opt/microsoft/ropen/4.0.2/lib64/R/library/Rcpp/include' -DU_STATIC_IMPLEMENTATION -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c minqa.cpp -o minqa.o
gfortran -fpic -g -O2 -c newuoa.f -o newuoa.o
gfortran -fpic -g -O2 -c newuob.f -o newuob.o
gfortran -fpic -g -O2 -c prelim.f -o prelim.o
gfortran -fpic -g -O2 -c rescue.f -o rescue.o
gfortran -fpic -g -O2 -c trsapp.f -o trsapp.o
gfortran -fpic -g -O2 -c trsbox.f -o trsbox.o
gfortran -fpic -g -O2 -c trstep.f -o trstep.o
gfortran -fpic -g -O2 -c uobyqa.f -o uobyqa.o
gfortran -fpic -g -O2 -c uobyqb.f -o uobyqb.o
gfortran -fpic -g -O2 -c update.f -o update.o
gfortran -fpic -g -O2 -c updatebobyqa.f -o updatebobyqa.o
g++ -shared -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -o minqa.so altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o Microsoft R Open 4.0.2 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2020 Microsoft Corporation Using the Intel MKL for parallel mathematical computing (using 44 cores). Default CRAN mirror snapshot taken on 2020-07-16. See: https://mran.microsoft.com/. -lgfortran -lm -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lR
g++: error: Microsoft: No such file or directory
g++: error: R: No such file or directory
g++: error: Open: No such file or directory
g++: error: 4.0.2: No such file or directory
g++: error: The: No such file or directory
g++: error: enhanced: No such file or directory
g++: error: R: No such file or directory
g++: error: distribution: No such file or directory
g++: error: from: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: packages: No such file or directory
g++: error: Copyright: No such file or directory
g++: error: (C): No such file or directory
g++: error: 2020: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Corporation: No such file or directory
g++: error: Using: No such file or directory
g++: error: the: No such file or directory
g++: error: Intel: No such file or directory
g++: error: MKL: No such file or directory
g++: error: for: No such file or directory
g++: error: parallel: No such file or directory
g++: error: mathematical: No such file or directory
g++: error: computing: No such file or directory
g++: error: (using: No such file or directory
g++: error: 44: No such file or directory
g++: error: cores).: No such file or directory
g++: error: Default: No such file or directory
g++: error: CRAN: No such file or directory
g++: error: mirror: No such file or directory
g++: error: snapshot: No such file or directory
g++: error: taken: No such file or directory
g++: error: on: No such file or directory
g++: error: 2020-07-16.: No such file or directory
g++: error: See:: No such file or directory
g++: error: https://mran.microsoft.com/.: No such file or directory
make: *** [/opt/microsoft/ropen/4.0.2/lib64/R/share/make/shlib.mk:6: minqa.so] Error 1
ERROR: compilation failed for package ‘minqa’
* removing ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0/minqa’
The downloaded source packages are in
‘/tmp/RtmpMlXevk/downloaded_packages’
Warning message:
In install.packages("minqa") :
installation of package ‘minqa’ had non-zero exit status
我在 --vanilla
模式下使用 运行 R 解决了这个问题(此模式忽略了 /opt/microsoft/ropen/4.0.2/lib64/R/etc/Rprofile.site
中的 .Rprofile.site
):
R --vanilla
install.packages("minqa")
// select any link you want
由于某些奇怪的原因,Microsoft R Open 的最新版本无法编译各种包,因为某些东西(我认为是 Rcpp)会产生多个 R 会话,并且重复调用以清除终端 window 在编译器命令中间引入换行符。见下文。似乎没有可靠的方法来完全抑制冗长的启动消息,这似乎是导致此错误的原因。
请注意 /opt/microsoft/ropen/4.0.2/lib64/R/bin/R CMD INSTALL
和 /opt/microsoft/ropen/4.0.2/lib64/R/bin/Rscript
想法?建议?
$ /opt/microsoft/ropen/4.0.2/lib64/R/bin/R -q
> install.packages('minqa')
Installing package into ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 53548 100 53548 0 0 247k 0 --:--:-- --:--:-- --:--:-- 247k
Microsoft R Open 4.0.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2020 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing (using 44 cores).
Default CRAN mirror snapshot taken on 2020-07-16.
See: https://mran.microsoft.com/.
* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fpic -g -O2 -c altmov.f -o altmov.o
gfortran -fpic -g -O2 -c bigden.f -o bigden.o
gfortran -fpic -g -O2 -c biglag.f -o biglag.o
gfortran -fpic -g -O2 -c bobyqa.f -o bobyqa.o
gfortran -fpic -g -O2 -c bobyqb.f -o bobyqb.o
gfortran -fpic -g -O2 -c lagmax.f -o lagmax.o
g++ -I/opt/microsoft/ropen/4.0.2/lib64/R/include -DNDEBUG -I'/opt/microsoft/ropen/4.0.2/lib64/R/library/Rcpp/include' -DU_STATIC_IMPLEMENTATION -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c minqa.cpp -o minqa.o
gfortran -fpic -g -O2 -c newuoa.f -o newuoa.o
gfortran -fpic -g -O2 -c newuob.f -o newuob.o
gfortran -fpic -g -O2 -c prelim.f -o prelim.o
gfortran -fpic -g -O2 -c rescue.f -o rescue.o
gfortran -fpic -g -O2 -c trsapp.f -o trsapp.o
gfortran -fpic -g -O2 -c trsbox.f -o trsbox.o
gfortran -fpic -g -O2 -c trstep.f -o trstep.o
gfortran -fpic -g -O2 -c uobyqa.f -o uobyqa.o
gfortran -fpic -g -O2 -c uobyqb.f -o uobyqb.o
gfortran -fpic -g -O2 -c update.f -o update.o
gfortran -fpic -g -O2 -c updatebobyqa.f -o updatebobyqa.o
g++ -shared -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -o minqa.so altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o Microsoft R Open 4.0.2 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2020 Microsoft Corporation Using the Intel MKL for parallel mathematical computing (using 44 cores). Default CRAN mirror snapshot taken on 2020-07-16. See: https://mran.microsoft.com/. -lgfortran -lm -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lR
g++: error: Microsoft: No such file or directory
g++: error: R: No such file or directory
g++: error: Open: No such file or directory
g++: error: 4.0.2: No such file or directory
g++: error: The: No such file or directory
g++: error: enhanced: No such file or directory
g++: error: R: No such file or directory
g++: error: distribution: No such file or directory
g++: error: from: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: packages: No such file or directory
g++: error: Copyright: No such file or directory
g++: error: (C): No such file or directory
g++: error: 2020: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Corporation: No such file or directory
g++: error: Using: No such file or directory
g++: error: the: No such file or directory
g++: error: Intel: No such file or directory
g++: error: MKL: No such file or directory
g++: error: for: No such file or directory
g++: error: parallel: No such file or directory
g++: error: mathematical: No such file or directory
g++: error: computing: No such file or directory
g++: error: (using: No such file or directory
g++: error: 44: No such file or directory
g++: error: cores).: No such file or directory
g++: error: Default: No such file or directory
g++: error: CRAN: No such file or directory
g++: error: mirror: No such file or directory
g++: error: snapshot: No such file or directory
g++: error: taken: No such file or directory
g++: error: on: No such file or directory
g++: error: 2020-07-16.: No such file or directory
g++: error: See:: No such file or directory
g++: error: https://mran.microsoft.com/.: No such file or directory
make: *** [/opt/microsoft/ropen/4.0.2/lib64/R/share/make/shlib.mk:6: minqa.so] Error 1
ERROR: compilation failed for package ‘minqa’
* removing ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0/minqa’
The downloaded source packages are in
‘/tmp/RtmpMlXevk/downloaded_packages’
Warning message:
In install.packages("minqa") :
installation of package ‘minqa’ had non-zero exit status
我在 --vanilla
模式下使用 运行 R 解决了这个问题(此模式忽略了 /opt/microsoft/ropen/4.0.2/lib64/R/etc/Rprofile.site
中的 .Rprofile.site
):
R --vanilla
install.packages("minqa")
// select any link you want