-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add conveneience function for refreshing docs installation
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, ...) | ||
} |