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

Fix available package list #808

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Added navigation controls in Function Explorer tab (#644)
* Fixed bug that crashed the Package Dependencies page for pkgs without any dependency info available (#802)
* Fixed bug that incorrectly displayed 0 dependencies as 1 (#805)
* Fixed bug that kept full list of available packages from populating (#776)

# riskassessment 3.1.0

Expand Down
17 changes: 14 additions & 3 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ app_server <- function(input, output, session) {

old <- options()
onStop(function() {
options(old)
})
options(repos = get_db_config("package_repo"))
options(c(
# Unsets available packages filter if unset previously. Will be overriden
# otherwise.
list(available_packages_filters = NULL),
old
))
})
options(
# Set session repo to value specified in configuration file
repos = get_db_config("package_repo"),
# Removes filters based on R version, OS type, sub-architecture. Only
# duplicates will be removed from the available package list
available_packages_filters = "duplicates"
)

# Collect user info.
user <- reactiveValues()
Expand Down
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4367,7 +4367,7 @@
"Maintainer": "Kevin Ushey <kevin@rstudio.com>",
"Repository": "RSPM",
"Date/Publication": "2024-02-29 01:10:07 UTC",
"Built": "R 4.3.3; ; 2024-07-10 13:11:46 UTC; unix"
"Built": "R 4.3.3; ; 2024-07-10 16:07:53 UTC; unix"
}
},
"reprex": {
Expand Down Expand Up @@ -6463,13 +6463,13 @@
"checksum": "97d1232340e04c53088bc8f814133dcd"
},
"NEWS.md": {
"checksum": "2273640b8da14304bc919f4fc83a58d7"
"checksum": "8f1dc97771e1911ac13a12a45300a516"
},
"R/app_config.R": {
"checksum": "c2b61f270b86b6833f0ee39c44a1a440"
},
"R/app_server.R": {
"checksum": "e2a53d90bd4289198e29bec4ff19eba7"
"checksum": "8408e324004d2991c855c03040cb2dca"
},
"R/app_ui.R": {
"checksum": "50d68f46171151cd36457a7154e5a7a3"
Expand Down