Skip to content

create helpful error for setwd(exportLocation()) #391

@lindsayplatt

Description

@lindsayplatt

When trying to run vizmake() with webpack on Jenkins, if the target dir doesn't already exist, you will get an error about Error in setwd(vizlab::exportLocation()): cannot change working directory. It is because the directory doesn't exist. I had to run mkdir 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions