STAT545-UBC / Discussion

Public discussion
37 stars 20 forks source link

build_vignette() error #530

Open tsmith93 opened 5 years ago

tsmith93 commented 5 years ago

Anybody ever encounter this:

build_vignettes() Building powers vignettes <system_command_status_error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, error_on_status = fail_on_status, timeout = timeout): System command error> Error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), : System command error

vincenzocoia commented 5 years ago

Google doesn't seem to give any related hits. Can you let us know the version of devtools and R you're using? I think the next step to debugging this is to try and reproduce the error, and this is the first step.

vincenzocoia commented 5 years ago

Other things to try that might provide more info:

  1. Run a "check" on the package -- any insight there?
  2. Try starting a new R package, create a new vignette, then try building. Does the error still happen? If so, this might be something to inform the developers of devtools.
tsmith93 commented 5 years ago

@vincenzocoia I am using R 3.5.1 GUI 1.70 El Capitan build (7543) for R, Version 1.1.456 for RStudio, and version 2.0.1 for devtools.

vincenzocoia commented 5 years ago

Try starting a new R package, create a new vignette, then try building. Does the error still happen?

I'd be interested in seeing the result of this, to see whether it's worth posting an issue in the devtools github repo.

tsmith93 commented 5 years ago

Hi @vincenzocoia apologies for the delayed result, but alas, I found a solution!

I actually just worked through all the components of Jenny Bryan's page on preparing systems for package development. In the end, I had no issues building my vignette! I have a feeling it was either

update.packages(ask = FALSE)

or

library(devtools) install_github("hadley/devtools")

that did the trick.

So @Bill1111 hopefully this works for you too!