Closed wdwatkins closed 5 years ago
I got this error locally as well, actually:
Warning in file(con, "r") :
cannot open file 'script.R': No such file or directory
Quitting from lines 46-68 (task_plans.Rmd)
Error in file(con, "r") : cannot open the connection
ERROR: installing vignettes failed
It went away after rebuilding and running tests again 🤔
Strange. Did you try the devtools::build_vignettes solution I suggested above?
Yes, just pushed those updates up.
Hmm. I'm only seeing 3 total files pushed, was expecting 6:
Looks like git was ignoring them since doc
is ignored, and that must have made them still ignored in inst/doc
Hey, it worked! Annoying, but Laura and I spend at least a day trying to work around it and had to give up, so I think this is the best bet for this and future vignettes for a while.
I wonder if our .gitignore is set up improperly. We do have !inst/doc
, so I'd think things wouldn't be ignored in that folder, but maybe the doc
line needs start/end line characters included, or maybe the order of !inst/doc
and doc
matters...something to look into someday.
Have you made all the vignette changes you plan to make, @wdwatkins ?
Yes, ready for you to review again.
I would guess the order of the two ignore lines matters.
I also wonder if there is some funniness going on in the task plans vignette that makes it not build the first time it runs, but then it uses existing temp files or something the second try, and it works. There's no reason I can see for this PR to effect another vignette building or not. I took a quick look and didn't see anything obvious though. 🤷♂
I'm not sure what's happening with the build, given that the master branch is building without error and all you've done is added a vignette .Rmd file. Maybe the issue is occurring (proximately, anyway) because this vignette doesn't currently have a built version in the repo. You could try calling
devtools::build_vignettes()
locally, then manually moving thedoc
folder intoinst
(to makeinst/doc/.*
), then committing the new built-vignette files (.Rmd, .html, .R) for this vignette.And when you have a final version of the vignette ready to go, please also copy the .html file into the
docs
folder for easy viewing on github.io.