我需要安装Rtools,但没有成功。
当我运行它时,它会起作用
loadContacts() {
this.contacts$ = this.contactsService.getContacts().pipe(tap(console.log));
}
当我加载库时,它也可以正常工作。但是,当我运行需要rtools的代码时,我得到:
library(devtools)
find_rtools()
[1] TRUE
当我尝试安装rtools时,我得到了:
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, :
Error 1 occurred building shared library.
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
解决方案
设置路径解决了该问题。谢谢@red_quark