Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying file path when calling orca from R #348

Open
cbailiss opened this issue Oct 13, 2020 · 0 comments
Open

Specifying file path when calling orca from R #348

cbailiss opened this issue Oct 13, 2020 · 0 comments

Comments

@cbailiss
Copy link

cbailiss commented Oct 13, 2020

I create a chart in plotly, then attempt to export it to an image specifying a full file path, but get an unhandled JavaScript error. Is this supported - or can only a filename be specified?

Example:

p <- plot_ly(...)
orca(p, "C:/Folder1/Folder2/Chart.png")

It appears as though orca is attempting to create directories, even though they definitely already exist:

[Window Title] - Error

[Main Instruction] - A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: EINVAL: invalid argument, mkdir 'C:/Folder1/Folder2/'
    at mkdirSync (fs.js:764:3)
    at fs.mkdirSync (electron/js2c/asar.js:725:16)
    at Object.fs.mkdirSync (electron/js2c/asar.js:725:16)
    at main ... etc etc etc ...

Using current release (1.3.1) on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant