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

Error on Windows, can't find the correct path after saving viewer. #14702

Open
4 tasks done
olivroy opened this issue May 14, 2024 · 1 comment
Open
4 tasks done

Error on Windows, can't find the correct path after saving viewer. #14702

olivroy opened this issue May 14, 2024 · 1 comment

Comments

@olivroy
Copy link
Contributor

olivroy commented May 14, 2024

System details

RStudio Edition : Desktop [Open Source]
RStudio Version : 2023.12.0.369 + 2024.04.0+693
OS Version      : Windows 10 x64 (build 19045)
R Version       : R version 4.3.2 (2023-10-31 ucrt)

Steps to reproduce the problem

  1. Open an RStudio project
  2. Run the following code
library(gt)
exibble |> gt()
  1. In viewer pane, go to Export, select Save as image

  2. Select a directory outside your current project.

  3. Select the box open file after saving

Describe the problem in detail

I get an error. Path not found. However, in the error dialog, the correct target file is displayed.

The file saved appear not to be correct either.

If you can't reproduce, maybe this could be related too:

I use Electron based file dialog. I have set default working directory location?

Describe the behavior you expected

I would expect to work correctly, like it does when I save the file inside the working directory. I was able to reproduce for 2 versions of RStudio.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@olivroy olivroy added bug new New incoming issues, ready for initial review. labels May 14, 2024
@ronblum
Copy link
Contributor

ronblum commented May 15, 2024

Thanks @olivroy ! I can reproduce this on Windows at least as far back as RStudio Desktop 2023.03.2+454. The file gets saved, but the error message appears regardless.

@ronblum ronblum added viewer pane and removed new New incoming issues, ready for initial review. labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants