当前位置:网站首页>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
边栏推荐
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- JS inheritance method
- CISP-PTE实操练习讲解
- Image,cv2读取图片的numpy数组的转换和尺寸resize变化
- 个人电脑好用必备软件(使用过)
- Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
- poi追加写EXCEL文件
- 2022.02.13 - 238. Maximum number of "balloons"
- JVM quick start
- Process of obtaining the electronic version of academic qualifications of xuexin.com
猜你喜欢

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
![[brush questions] top101 must be brushed in the interview of niuke.com](/img/55/5ca957e65d48e19dbac8043e89e7d9.png)
[brush questions] top101 must be brushed in the interview of niuke.com

MySQL learning record 10getting started with JDBC

Visual implementation and inspection of visdom

tree树的精准查询

CISP-PTE实操练习讲解

2. File operation - write

Chrome浏览器的crash问题

JVM performance tuning and practical basic theory - Part 1

sublime text中conda环境中plt.show无法弹出显示图片的问题
随机推荐
Delay initialization and sealing classes
@JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
Synchronized solves problems caused by sharing
软件卸载时遇到trying to use is on a network resource that is unavailable
Pointer advanced --- pointer array, array pointer
Leetcode skimming (5.29) hash table
Deep analysis of C language pointer
2022.02.13 - 238. Maximum number of "balloons"
优秀的软件测试人员,都具备这些能力
China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
[MySQL] lock
C語言雙指針——經典題型
logback1.3. X configuration details and Practice
Fairguard game reinforcement: under the upsurge of game going to sea, game security is facing new challenges
Introduction to the differences between compiler options of GCC dynamic library FPIC and FPIC
目标检测——Pytorch 利用mobilenet系列(v1,v2,v3)搭建yolov4目标检测平台
torch建立的网络模型使用torchviz显示
【刷题】牛客网面试必刷TOP101
Deep analysis of C language data storage in memory