diff --git a/R/fuzzyhelp.R b/R/fuzzyhelp.R index d68fd58..be7ac63 100644 --- a/R/fuzzyhelp.R +++ b/R/fuzzyhelp.R @@ -441,3 +441,9 @@ fuzzyhelp <- function( return(.env$fuzzyhelp) } + +fuzzyhelp_addin <- function() { + script <- tempfile() + writeLines("fuzzyhelp(background = FALSE)", script) + rstudioapi::jobRunScript(script, name = "fuzzyhelp") +} diff --git a/inst/rstudio/addins.dcf b/inst/rstudio/addins.dcf index 07e5654..010349f 100644 --- a/inst/rstudio/addins.dcf +++ b/inst/rstudio/addins.dcf @@ -1,4 +1,4 @@ Name: Fuzzy Search on R Help Description: Search and view help files with fuzzy queries. -Binding: fuzzyhelp +Binding: fuzzyhelp_addin Interactive: true