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

R: run button in test files source documents #1720

Closed
EmilHvitfeldt opened this issue Oct 30, 2023 · 3 comments
Closed

R: run button in test files source documents #1720

EmilHvitfeldt opened this issue Oct 30, 2023 · 3 comments

Comments

@EmilHvitfeldt
Copy link

Positron Version:

Positron Version: 2023.10.0 (Universal) build 1453
Code - OSS Version: 1.83.0
Commit: b781e9e
Date: 2023-10-30T03:03:08.650Z
Electron: 25.8.4
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

Steps to reproduce the issue:

  1. Be in R package with test files in them
  2. this the ▶️ button
Kapture.2023-10-30.at.15.03.04.mp4

What did you expect to happen?

I hoped it would act like the "Run tests" button in RStudio.

Instead it sources the file (which it does say when you hover), this is not that nice since:

  • it requires you to devtools::load_all() beforehand most times to work
  • it doesn't handle snapshot testing with testthat

Ref: #1365

Were there any error messages in the output or Developer Tools console?

nope

@jennybc
Copy link
Member

jennybc commented Oct 30, 2023

As you suspect, we will soon have a gesture to do what you want, due to work on #1365 (my current task). Hopefully we're going to end up somewhere that's arguably better than RStudio and the "Run tests" button. Stay tuned.

@jennybc
Copy link
Member

jennybc commented Feb 23, 2024

Related to #1359 (which is also about the appropriate-ness of "Source R File" in certain contexts) and perhaps to #1808.

@jennybc jennybc added this to the Release Candidate milestone Feb 23, 2024
@wesm wesm added the lang: r label Feb 29, 2024
@jennybc
Copy link
Member

jennybc commented Apr 18, 2024

This is covered by #2225.

@jennybc jennybc closed this as completed Apr 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants