[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
Mon Apr 13 20:50:16 CEST 2020


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.

 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]]



More information about the R-help mailing list