Skip to content

Commit

Permalink
Fix dependency handling (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
salim-b authored Jun 9, 2020
1 parent 1d8b822 commit 5267f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

# pkgsearch 3.0.2.9000

* Fix dependency handling in the add-in (@salim-b, #101)

# pkgsearch 3.0.2

* The RStudio addin now gives a better error more missing dependencies
Expand Down
4 changes: 2 additions & 2 deletions R/addin.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pkg_search_addin <- function(
query = "",
viewer = c("dialog", "browser")) {

needs_packages(c("memoise", "shiny", "shinyjs", "shinyWidgets", "whoami"))

query
maint <- whoami::email_address(fallback = "")

Expand All @@ -48,8 +50,6 @@ pkg_search_addin <- function(
`cnt-maint-next` = 0L
)

needs_packages(c("memoise", "shiny", "shinyjs", "shinyWidgets", "whoami"))

if (is.character(viewer)) {
mode <- match.arg(viewer)
if (mode == "dialog") {
Expand Down

0 comments on commit 5267f09

Please sign in to comment.