plotly / plotly/plotly.R

orca() does not support file paths

Open
#1,310 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

I'm trying to export a static image in R using orca(), but it ignores the file path and just exports it to the current location of the script that I'm running.

For example, if I run orca(image, "/images/plot1.png") from a script located in /code/script.R, it saves it to /code/plot1.png instead of where I specified.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the R implementation of orca() and reproduce the reported call with an absolute output path such as /images/plot1.png from a script in another directory. Trace how the path is passed to the image export process; done means the image is written to the requested path rather than the script's current location.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.