当前位置:网站首页>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
边栏推荐
- 根据csv文件某一列字符串中某个数字排序
- Deep analysis of C language data storage in memory
- Roguelike游戏成破解重灾区,如何破局?
- Modify the video name from the name mapping relationship in the table
- MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
- Computer cleaning, deleted system files
- Charging interface docking tutorial of enterprise and micro service provider platform
- egg. JS getting started navigation: installation, use and learning
- vb.net 随窗口改变,缩放控件大小以及保持相对位置
- sys. argv
猜你喜欢
vb.net 随窗口改变,缩放控件大小以及保持相对位置
JS inheritance method
Leetcode question brushing (5.28) hash table
[MySQL] database stored procedure and storage function clearance tutorial (full version)
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
C語言雙指針——經典題型
tree树的精准查询
Charging interface docking tutorial of enterprise and micro service provider platform
延迟初始化和密封类
2022.02.13 - NC004. Print number of loops
随机推荐
egg. JS directory structure
View computer devices in LAN
egg. JS project deployment online server
Fairguard game reinforcement: under the upsurge of game going to sea, game security is facing new challenges
Is it safe to open an account in Zheshang futures?
After PCD is converted to ply, it cannot be opened in meshlab, prompting error details: ignored EOF
Revit 二次开发 HOF 方式调用transaction
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
marathon-envs项目环境配置(强化学习模仿参考动作)
Roguelike游戏成破解重灾区,如何破局?
704 binary search
@Jsonbackreference and @jsonmanagedreference (solve infinite recursion caused by bidirectional references in objects)
LDAP應用篇(4)Jenkins接入
Browser thread
poi追加写EXCEL文件
The mysqlbinlog command uses
Restful API design specification
C語言雙指針——經典題型
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
如何进行接口测试测?有哪些注意事项?保姆级解读