当前位置:网站首页>Using pkgbuild:: find in R language_ Rtools check whether rtools is available and use sys The which function checks whether make exists, installs it if not, and binds R and rtools with the writelines
Using pkgbuild:: find in R language_ Rtools check whether rtools is available and use sys The which function checks whether make exists, installs it if not, and binds R and rtools with the writelines
2022-07-06 08:40:00 【Data+Science+Insight】
R Used in language pkgbuild::find_rtools(debug = TRUE) Check to see if there is Rtools、 Use Sys.which The function view make Whether there is 、 If not, install Rtools、 Use writeLines Function binding R and Rtools
Catalog
#R Version and Rtools Need to match and view
# Use writeLines Function binding R and Rtools
#R Used in language pkgbuild::find_rtools(debug = TRUE) Check to see if there is Rtools、 Use Sys.which The function view make Whether there is 、 If not, install Rtools、 Use writeLines Function binding R and Rtools
I really didn't find make So I can't install .
> Sys.which("make")
make
""
> pkgbuild::find_rtools(debug = TRUE)
Found in Rtools 4.0 installation folder
[1] TRUE
> install.packages("D:/Downloads/RGtk2_2.20.36.3.tar.gz", repos = NULL, type = "source")
* installing *source* package 'RGtk2' ...
** Will succeed 'RGtk2' Package unpacking and MD5 And inspection
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'RGtk2'
* removing 'D:/R/R-4.0.5/library/RGtk2'
Warning in install.packages :
installation of package ‘D:/Downloads/RGtk2_2.20.36.3.tar.gz’ had non-zero exit status
#R Version and Rtools Need to match and view
# install Rtools
# Use writeLines Function binding R and Rtools
# Do the following ( Remember if there is no response after the operation , Need to restart Rstudio)
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
> Sys.which("make")
make
"D:\\Rtools\\rtools40\\usr\\bin\\make.exe"
Reference resources :R
Reference resources :Index of /src/contrib/Archive/RGtk2
边栏推荐
- Bitwise logical operator
- On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
- FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
- 电脑清理,删除的系统文件
- pytorch训练好的模型在加载和保存过程中的问题
- Visual implementation and inspection of visdom
- China's high purity aluminum target market status and investment forecast report (2022 Edition)
- Unified ordering background interface product description Chinese garbled
- 【ROS】usb_ Cam camera calibration
猜你喜欢
Visual implementation and inspection of visdom
Roguelike游戏成破解重灾区,如何破局?
Image, CV2 read the conversion and size resize change of numpy array of pictures
Deep learning: derivation of shallow neural networks and deep neural networks
704 binary search
【ROS】usb_cam相机标定
Double pointeur en langage C - - modèle classique
CISP-PTE实操练习讲解
PC easy to use essential software (used)
[MySQL] database stored procedure and storage function clearance tutorial (full version)
随机推荐
VMware virtualization cluster
Cisp-pte practice explanation
Browser thread
hutool优雅解析URL链接并获取参数
Image, CV2 read the conversion and size resize change of numpy array of pictures
查看局域网中电脑设备
有效提高软件产品质量,就找第三方软件测评机构
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
View computer devices in LAN
自动化测试框架有什么作用?上海专业第三方软件测试公司安利
Let the bullets fly for a while
The mysqlbinlog command uses
Sort according to a number in a string in a column of CSV file
Light of domestic games destroyed by cracking
Summary of MySQL index failure scenarios
What is CSRF (Cross Site Request Forgery)?
PLT in Matplotlib tight_ layout()
gcc动态库fPIC和fpic编译选项差异介绍
Swagger setting field required is mandatory
704 binary search