diff --git a/NEWS.md b/NEWS.md index 72307ff7..678888e2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/app_server.R b/R/app_server.R index 98bc3e97..6a9c86bf 100644 --- a/R/app_server.R +++ b/R/app_server.R @@ -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() diff --git a/manifest.json b/manifest.json index a17b9c10..2546af10 100644 --- a/manifest.json +++ b/manifest.json @@ -4367,7 +4367,7 @@ "Maintainer": "Kevin Ushey ", "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": { @@ -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"