[R] Help Installing Rtools
Doran, Harold
HDor@n @end|ng |rom @|r@org
Thu Sep 5 15:43:36 CEST 2019
I've done the following steps, but am unable to source in the Cpp files. Details of my session and sessionInfo are below. Am I missing a package, or a critical step? I found one answer regarding the 'make" error on stackoverflow suggesting the problem is resolved by grabbing the more recent version of Rtools, which I have done.
Thanks.
> install.packages('installr')
> library(installr)
> install.Rtools()
This step installed Rtools35.exe correctly as far as I can tell. Then,
> library(devtools)
Loading required package: usethis
> library(Rcpp)
> sourceCpp("test.cpp")
Warning message:
In system(cmd) : 'make' not found
Error in sourceCpp("test.cpp") :
Error 1 occurred building shared library.
WARNING: The tools required to build C++ code for R were not found.
Please download and install the appropriate version of Rtools:
http://cran.r-project.org/bin/windows/Rtools/
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rcpp_1.0.2 devtools_2.1.0 usethis_1.5.1 htmltab_0.7.1
[5] installr_0.22.0 stringr_1.4.0
loaded via a namespace (and not attached):
[1] magrittr_1.5 pkgload_1.0.2 R6_2.4.0 rlang_0.3.4
[5] httr_1.4.1 tools_3.6.1 pkgbuild_1.0.5 sessioninfo_1.1.1
[9] cli_1.1.0 withr_2.1.2 remotes_2.1.0 rprojroot_1.3-2
[13] assertthat_0.2.1 digest_0.6.19 crayon_1.3.4 processx_3.4.1
[17] callr_3.3.1 fs_1.3.1 ps_1.3.0 testthat_2.2.1
[21] curl_4.0 memoise_1.1.0 glue_1.3.1 stringi_1.4.3
[25] compiler_3.6.1 backports_1.1.4 desc_1.2.0 prettyunits_1.0.2
[29] XML_3.98-1.20
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list