-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New function to expose more info about an installed package (#5365)
Addresses #1957 Requires posit-dev/ark#625 What's the payoff? * Sometimes you want to get info about a package version without necessarily challenging the user to install/upgrade. (I need this to finish #5231, for example). * If you do need to invite the user to install or upgrade a package, this extra info allows us to build a better message. ### QA Notes To experience that `checkInstalled()` still works and to see the user-facing message in the absence of a minimum version requirement, here's one idea: * Remove the styler package: `remove.packages("styler")` * Trigger the *Format Document* command You should see this: <img width="404" alt="Screenshot 2024-11-13 at 3 46 39 PM" src="https://github.com/user-attachments/assets/2231ec70-d335-4f99-b5f9-598cd1c19301"> To experience that `checkInstalled()` still works and to see the user-facing message in the presence of a minimum version requirement, here's one idea: * Install renv at a version below positron-r's minimum version, which is currently 1.0.9. I would do this with `pak::pak("[email protected]")`. * Walk through *File > New Project > R Project* and click the box to use renv: <img width="701" alt="Screenshot 2024-11-13 at 3 35 45 PM" src="https://github.com/user-attachments/assets/430908cb-9fce-43fe-8d39-a6fec56f9a70"> As the new project is being stood up, you should see this: <img width="401" alt="Screenshot 2024-11-13 at 3 37 12 PM" src="https://github.com/user-attachments/assets/ee3d82a1-5479-47e6-82bd-a693583d2f4a">
- Loading branch information
Showing
1 changed file
with
143 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters