Skip to content

Commit

Permalink
Merge pull request #808 from pharmaR/jt-776-fix_avaiable_pkg_lst
Browse files Browse the repository at this point in the history
Fix available package list
  • Loading branch information
aclark02-arcus authored Jul 11, 2024
2 parents df1813b + 80833c9 commit ed016fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
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

0 comments on commit ed016fc

Please sign in to comment.