当前位置:网站首页>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
边栏推荐
- The problem and possible causes of the robot's instantaneous return to the origin of the world coordinate during rviz simulation
- Light of domestic games destroyed by cracking
- Deep learning: derivation of shallow neural networks and deep neural networks
- 被破解毁掉的国产游戏之光
- Roguelike game into crack the hardest hit areas, how to break the bureau?
- sublime text中conda环境中plt.show无法弹出显示图片的问题
- tree树的精准查询
- JVM performance tuning and practical basic theory - Part 1
- Shift Operators
- 【MySQL】日志
猜你喜欢
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
JVM 快速入门
C语言双指针——经典题型
Generator parameters incoming parameters
ROS编译 调用第三方动态库(xxx.so)
Cisp-pte practice explanation
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
同一局域网的手机和电脑相互访问,IIS设置
【MySQL】鎖
PLT in Matplotlib tight_ layout()
随机推荐
The harm of game unpacking and the importance of resource encryption
Deep analysis of C language pointer
Unified ordering background interface product description Chinese garbled
LDAP应用篇(4)Jenkins接入
marathon-envs项目环境配置(强化学习模仿参考动作)
生成器参数传入参数
hutool优雅解析URL链接并获取参数
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
Pointer advanced --- pointer array, array pointer
【MySQL】鎖
3. File operation 3-with
swagger设置字段required必填
LDAP application (4) Jenkins access
JS inheritance method
egg. JS directory structure
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
egg. JS getting started navigation: installation, use and learning
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
电脑F1-F12用途
Modify the video name from the name mapping relationship in the table