Skip to content

Commit

Permalink
add conveneience function for refreshing docs installation
Browse files Browse the repository at this point in the history
  • Loading branch information
btupper committed Jan 5, 2025
1 parent 3e0499b commit 44a334e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions functions/help_docs.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Note: this is a convenience function to update the ColbyForecastingDacs package
# which includes pushing onto github at https://github.com/BigelowLab/ColbyForecastingDocs
#
# It only makes sense to use if you have push rights to that repos
update_help_docs = function(path = "~/Library/CloudStorage/Dropbox/code/projects/ColbyForecastingDocs"){
source(file.path(path, "inst/update_script.R"))
}


install_docs = function(repos = "BigelowLab/ColbyForecastingDocs", ...){
#' Install the Colby Forecasting Documentation package
#'
#' Please see \href{https://github.com/BigelowLab/ColbyForecastingDocs}{ColbyForecastingDocs}
#' @param repos chr, the namespace and name of the package on github
#' @param ... other arguments for \code{\link[remotes]{install_github}}
#' @return see \code{\link[remotes]{install_github}}

remotes::install_github(repos, ...)
}

0 comments on commit 44a334e

Please sign in to comment.