-
-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Description
> library(Rcpp)
> cppFunction('int add(int x, int y, int z) {
+ int sum = x + y + z;
+ return sum;
+ }')
make: *** No rule to make target 'file15e4405b64f6.o', needed by 'sourceCpp_2.dll'. Stop.
Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, :
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/
I installed according to http://cran.r-project.org/bin/windows/Rtools/ and am able to install from source.
> sessionInfo()
R version 4.0.1 (2020-06-06)
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 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rcpp_1.0.4.6
loaded via a namespace (and not attached):
[1] rstudioapi_0.11 magrittr_1.5 usethis_1.6.1 devtools_2.3.0 pkgload_1.1.0 R6_2.4.1 rlang_0.4.6
[8] fansi_0.4.1 tools_4.0.1 pkgbuild_1.0.8 sessioninfo_1.1.1 cli_2.0.2 withr_2.2.0 ellipsis_0.3.1
[15] remotes_2.1.1 assertthat_0.2.1 digest_0.6.25 rprojroot_1.3-2 crayon_1.3.4 processx_3.4.2 callr_3.4.3
[22] fs_1.4.1 ps_1.3.3 testthat_2.3.2 memoise_1.1.0 glue_1.4.1 compiler_4.0.1 desc_1.2.0
[29] backports_1.1.7 prettyunits_1.1.1
Metadata
Metadata
Assignees
Labels
No labels