当前位置:网站首页>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
边栏推荐
- Is it safe to open an account in Zheshang futures?
- vb.net 随窗口改变,缩放控件大小以及保持相对位置
- 角色动画(Character Animation)的现状与趋势
- sys. argv
- [cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
- JS native implementation shuttle box
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- 704 二分查找
- @JsonBackReference和@JsonManagedReference(解决对象中存在双向引用导致的无限递归)
猜你喜欢

JS native implementation shuttle box

目标检测——Pytorch 利用mobilenet系列(v1,v2,v3)搭建yolov4目标检测平台

Sort according to a number in a string in a column of CSV file

【刷题】牛客网面试必刷TOP101

延迟初始化和密封类

ROS compilation calls the third-party dynamic library (xxx.so)
![[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

Leetcode question brushing (5.28) hash table

PC easy to use essential software (used)

JVM 快速入门
随机推荐
C language double pointer -- classic question type
[NVIDIA development board] FAQ (updated from time to time)
visdom可视化实现与检查介绍
@Jsonbackreference and @jsonmanagedreference (solve infinite recursion caused by bidirectional references in objects)
企微服务商平台收费接口对接教程
The network model established by torch is displayed by torch viz
Generator parameters incoming parameters
What is CSRF (Cross Site Request Forgery)?
Mobile phones and computers on the same LAN access each other, IIS settings
【MySQL】锁
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
The mysqlbinlog command uses
PLT in Matplotlib tight_ layout()
View computer devices in LAN
LDAP application (4) Jenkins access
电脑清理,删除的系统文件
软件压力测试常见流程有哪些?专业出具软件测试报告公司分享
MySQL learning record 07 index (simple understanding)
Modify the video name from the name mapping relationship in the table
MySQL learning record 10getting started with JDBC