Skip to content

Commit

Permalink
[fix] settings addin
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHWade committed Feb 12, 2024
1 parent 262a40a commit 1b48fda
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/addin-settings.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#' Settings App for gpttools
#'
#'
#' @return This function has no return value.
#'
#' @export
launch_settings <- function() {
run_app_file <- system.file("settings/app.R", package = "gpttools")
shiny::runApp(run_app_file)

Check warning on line 9 in R/addin-settings.R

View check run for this annotation

Codecov / codecov/patch

R/addin-settings.R#L8-L9

Added lines #L8 - L9 were not covered by tests
}
5 changes: 5 additions & 0 deletions inst/rstudio/addins.dcf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Description: Generate code suggestions in source docs like .R, .Rmd, and .qmd
Binding: copilot_addin
Interactive: true

Name: Settings for gpttools
Description: Customize gpttools settings
Binding: launch_settings
Interactive: true

Name: Convert script to function
Description: Generate comments for your code
Binding: script_to_function_addin
Expand Down

0 comments on commit 1b48fda

Please sign in to comment.