Build Package: The system cannot find the path specified.

In a Windows system, I cannot build packages. It tells me that I need to install extra packages, but then does not.

The code in the package is just the boilder-plate provided when a person "creates a new package."

The system cannot find the path specified.
The system cannot find the path specified.
* installing to library 'C:/Users/hnelson3/Documents/R/R-4.0.2/library'
* installing *source* package 'nayebi' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
  converting help for package 'nayebi'
*** installing help indices
    finding HTML links ...    hello                                   html  
 done
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (nayebi)

Exited with status 1.

> devtools::build()
   The system cannot find the path specified.
√  checking for file 'C:\Users\hnelson3\Documents\projects\nayebi/DESCRIPTION' ...
-  preparing 'nayebi':
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'nayebi_0.1.0.tar.gz'
   
Error in (function (command = NULL, args = character(), error_on_status = TRUE,  : 
  System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
E> The system cannot find the path specified.
E> * checking for file 'C:\Users\hnelson3\Documents\projects\nayebi/DESCRIPTION' ... OK
E> * preparing 'nayebi':
E> * checking DESCRIPTION meta-information ... OK
E> * checking for LF line-endings in source and make files and shell scripts
E> * checking for empty or unneeded directories
E> * building 'nayebi_0.1.0.tar.gz'
E> 
Type .Last.error.trace to see where the error occured
> 
.Last.error.trace

 Stack trace:

 1. devtools::build()
 2. pkgbuild::build(path = pkg, dest_path = path, binary = ...
 3. withr::with_temp_libpaths(rcmd_build_tools(options$cmd ...
 4. base:::force(code)
 5. pkgbuild:::rcmd_build_tools(options$cmd, c(options$pat ...
 6. pkgbuild:::with_build_tools(callr::rcmd_safe(..., env  ...
 7. withr::with_path(rtools_path(), code)
 8. base:::force(code)
 9. callr::rcmd_safe(..., env = env, spinner = FALSE, show ...
 10. callr:::run_r(options)
 11. base:::with(options, with_envvar(env, do.call(processx ...
 12. base:::with.default(options, with_envvar(env, do.call( ...
 13. base:::eval(substitute(expr), data, enclos = parent.fr ...
 14. base:::eval(substitute(expr), data, enclos = parent.fr ...
 15. callr:::with_envvar(env, do.call(processx::run, c(list ...
 16. base:::force(code)
 17. base:::do.call(processx::run, c(list(bin, args = real_ ...
 18. (function (command = NULL, args = character(), error_o ...
 19. throw(new_process_error(res, call = sys.call(), echo = ...

 x System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
E> The system cannot find the path specified.
E> * checking for file 'C:\Users\hnelson3\Documents\projects\nayebi/DESCRIPTION' ... OK
E> * preparing 'nayebi':
E> * checking DESCRIPTION meta-information ... OK
E> * checking for LF line-endings in source and make files and shell scripts
E> * checking for empty or unneeded directories
E> * building 'nayebi_0.1.0.tar.gz'
E>  
1 Like

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.