Skip to content

ggsave is not working when executed via Rscript.  #2752

@abeeCrombie

Description

@abeeCrombie

sorry this is a bit above my pay grade but I just spent all afternoon trying to figure out why a script I run wasnt working. I loaded the new ggplot package yesterday and now all my scripts that I run via task scheduler dont execute the ggsave command.

here is the error message I got
Error in (function (file = if (onefile) "Rplots.pdf" else "Rplot%03d.pdf", : cannot open file 'Rplots.pdf' Calls: ggsave ... withVisible -> eval -> eval -> <Anonymous> -> <Anonymous> Execution halted

code works fine in Rstudio and R command but not via Rscript.exe.

I see there were some recent commits. Hopefully you guys are smarter than me to figure out why its not working

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