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

"Source on Save" checkbox disappears when a commented out testthat unit test exists in the script #13454

Open
danwiththeplan opened this issue Aug 3, 2023 · 0 comments
Labels

Comments

@danwiththeplan
Copy link

System details

RStudio Edition : Desktop
RStudio Version : 2023.06.1+524 (2023.06.1+524)
OS Version      : MacOS 13.4.1 (c) (22F770820d)
R Version       :  4.2.0 (2022-04-22)

Steps to reproduce the problem

  1. Open a new R script (File > Open File)
  2. Check "Source on Save" checkbox
  3. Save empty file ("Source on Save" checkbox remains)
  4. Add to script:
library(testthat)
# test_that("an empty test", {
# })
  1. Save file ("Source on Save" checkbox disappears)

Describe the problem in detail

"Source on Save" checkbox disappears when any unit test (even if commented out) exists in the script and the script is saved.

Describe the behavior you expected

"Source on Save" checkbox remains when any unit test (even if commented out) exists in the script and the script is saved.

  • [ *] 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.
@danwiththeplan danwiththeplan added bug new New incoming issues, ready for initial review. labels Aug 3, 2023
@ronblum ronblum removed the new New incoming issues, ready for initial review. label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants