[R] Error with devTools

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Mon Apr 13 22:32:30 CEST 2020


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