Open lindsayplatt opened 6 years ago
Just came across this again. vizlab::vizmake()
used to automatically create the target dir if it didn't already exist...should probably still have that behavior. I think the problem now is that webpack tries to run setwd(exportLocation())
before vizmake() adds the target dir.
When trying to run vizmake() with webpack on Jenkins, if the
target
dir doesn't already exist, you will get an error aboutError in setwd(vizlab::exportLocation()): cannot change working directory
. It is because the directory doesn't exist. I had to runmkdir target
and then try again. It would be nice if there was an error that popped up to tell you this (or maybe a better way to do this entirely).Maybe an error around here: https://github.com/USGS-VIZLAB/vizlab/blob/master/R/webpacker.R#L44