[R] Error with devTools
Iurii@Cher@i@ti@ m@iii@g oii t-systems@com
Iurii@Cher@i@ti@ m@iii@g oii t-systems@com
Tue Apr 14 10:18:03 CEST 2020
Hi Duncan ,
Thank you for your answer, you mean R path?
I have in PATH "C:\Program Files\R\R-3.6.2\bin\x64"
Maybe you can provide me , how I can switch quiet = TRUE to False?
-----Original Message-----
From: Duncan Murdoch <murdoch.duncan using gmail.com>
Sent: Monday, April 13, 2020 11:33 PM
To: Cherniatin, Iurii <Iurii.Cherniatin using t-systems.com>; r-help using r-project.org
Subject: Re: [R] Error with devTools
On 13/04/2020 2:50 p.m., Iurii.Cherniatin using t-systems.com wrote:
> Hi everyone!
> Could somebody help me, I`m trying to run devtools::test() from R-console and it doesn't` work, but it works via RStudio if I will remove devtools before.
I'd guess you don't have the PATH set properly so compilers etc can't be found, but devtools::test hides the information that would confirm that, because it compiles with quiet = TRUE hard coded.
Duncan Murdoch
>
> Error from console:
>
>
> Loading space
> Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
> System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
> E> * installing *source* package 'space' ...
> E> ** using staged installation
> E> ** libs
> E> no DLL was created
> E> ERROR: compilation failed for package 'space'
> E> * removing 'C:/Users/user/AppData/Local/Temp/RtmpSESXUZ/devtools_install_3f9853f01a48/space'
> Type .Last.error.trace to see where the error occured
>>
>>
>>
>> .Last.error.trace
>
> Stack trace:
>
> 1. devtools::test()
> 2. devtools:::load_all(pkg$path, quiet = TRUE, export_all =
> export_all) 3. pkgload::load_all(path = path, reset = reset, recompile = recompile, ...
> 4. pkgbuild::compile_dll(path, quiet = quiet) 5.
> withr::with_makevars(compiler_flags(TRUE), assignment = "+=", ...
> 6. withr:::with_envvar(c(R_MAKEVARS_USER = makevars_file), { ...
> 7. base:::force(code)
> 8. base:::force(code)
> 9. pkgbuild:::install_min(path, dest = install_dir, components = "libs", ...
> 10. pkgbuild:::rcmd_build_tools("INSTALL", c(path, paste("--library=", ...
> 11. pkgbuild:::with_build_tools(callr::rcmd_safe(..., env = env, ...
> 12. withr::with_path(rtools_path(), code) 13. base:::force(code) 14.
> callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE, ...
> 15. callr:::run_r(options)
> 16. base:::with(options, with_envvar(env, do.call(processx::run, ...
> 17. base:::with.default(options, with_envvar(env, do.call(processx::run, ...
> 18. base:::eval(substitute(expr), data, enclos = parent.frame()) 19.
> base:::eval(substitute(expr), data, enclos = parent.frame()) 20.
> callr:::with_envvar(env, do.call(processx::run, c(list(bin, args = real_cmd ...
> 21. base:::force(code)
> 22. base:::do.call(processx::run, c(list(bin, args = real_cmdargs, ...
> 23. (function (command = NULL, args = character(), error_on_status = TRUE, ...
> 24. throw(new_process_error(res, call = sys.call(), echo = echo, ...
>
> x System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
> E> * installing *source* package 'space' ...
> E> ** using staged installation
> E> ** libs
> E> no DLL was created
> E> ERROR: compilation failed for package 'space'
> E> * removing 'C:/Users/user/AppData/Local/Temp/RtmpSESXUZ/devtools_install_3f9853f01a48/space'
>
>
>
> Environment:
>
> 1) Windows 10 X64
>
> 2) R lib : 3.6.3
>
> 3) R-Studio 1.2.5042
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list