You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally (I think), nothing, since sourcing the current file is rarely what you want when in package development mode. Should probably also remove "Source file" button from navbar.
Were there any error messages in the output or Developer Tools console?
The text was updated successfully, but these errors were encountered:
…#4567)
Addresses #1359
I can't think of good reasons why people would in fact want any of these
affordances in an R package. Even without them, you can still do
something like <kbd>Cmd</kbd>+<kbd>Enter</kbd> to get a function
defined, as well as of course the better/recommended options like
`devtools::load_all()`, etc.
### QA Notes
After this change,
- when you are in an `.R` file but _not_ in an R package, you get the
command to source your current file on the editor action bar, in the
context menu, and via the keybinding.
- when you _are_ in an R package in an `.R` file, you do not see this
command in any of these three spots.
I kept the command in the command palette because it is used [in
testing](https://github.com/posit-dev/positron/blob/de05c42d65938e0dfc7755d67d59eda49957ef2e/test/smoke/src/areas/positron/dataexplorer/largeDataFrame.test.ts#L99)
(the testing workspaces look like R packages) and it's not _super_
prominent for users there.
Positron Version:
Steps to reproduce the issue:
What did you expect to happen?
Ideally (I think), nothing, since sourcing the current file is rarely what you want when in package development mode. Should probably also remove "Source file" button from navbar.
Were there any error messages in the output or Developer Tools console?
The text was updated successfully, but these errors were encountered: