diff --git a/NAMESPACE b/NAMESPACE index aed6f16aa3f9705afb6db8887878053ff17c1331..3a060eb0c0460a6650b74a085d4ae5fbcf5fe101 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,4 +3,5 @@ export(loadLibraries) export(setup) export(tidyNum) +import(here) importFrom(utils,install.packages) diff --git a/R/loadLibraries.R b/R/loadLibraries.R index d523862b4c41684085f07e958e932e73fa4bcf22..9dc036a0de461a6f20d34757e73ea16d88de45e8 100644 --- a/R/loadLibraries.R +++ b/R/loadLibraries.R @@ -17,6 +17,7 @@ #' @author Luke Blunden, \email{lsb@@soton.ac.uk} (original) #' @author Michael Harper \email{m.harper@@soton.ac.uk} (revised version) #' @export +#' @family utils #' loadLibraries <- function(..., repo = "https://cran.rstudio.com"){ diff --git a/R/setup.R b/R/setup.R index 6baca012b920da637b0017032708aec0567b7e6e..301c11fc9dbbf52b734381540fb3cd7ba7161fcc 100644 --- a/R/setup.R +++ b/R/setup.R @@ -2,6 +2,7 @@ #' #' \code{setup} sources env.R in the repo/project top level folder. #' +#' @import here #' @author Ben Anderson, \email{b.anderson@@soton.ac.uk} #' @export #' @family utils diff --git a/R/tidyNum.R b/R/tidyNum.R index f435e76755efef77704e5b0691bd11230e583e35..8bc5f5e779f6e8b13ef44425c9f91bebfb4122df 100644 --- a/R/tidyNum.R +++ b/R/tidyNum.R @@ -6,6 +6,7 @@ #' #' @author Ben Anderson, \email{b.anderson@@soton.ac.uk} #' @export +#' @family utils #' tidyNum <- function(number) { format(number, big.mark=",", scientific=FALSE) diff --git a/man/loadLibraries.Rd b/man/loadLibraries.Rd index 6a0223f4215a3f036106f04289ce9ffc0a7c522b..016e3fb191994ced02f56f11d401cac12bb37534 100644 --- a/man/loadLibraries.Rd +++ b/man/loadLibraries.Rd @@ -24,8 +24,14 @@ Especially useful when running on virtual machines where package installation whereas 'library' throws an error if it can't load the package. Hence 'loadLibraries' https://stackoverflow.com/questions/5595512/what-is-the-difference-between-require-and-library } +\seealso{ +Other utils: +\code{\link{setup}()}, +\code{\link{tidyNum}()} +} \author{ Luke Blunden, \email{lsb@soton.ac.uk} (original) Michael Harper \email{m.harper@soton.ac.uk} (revised version) } +\concept{utils} diff --git a/man/setup.Rd b/man/setup.Rd index f1d71e82b7e7366264722b791a08f4d33b318c89..a85f7befcb38f39ff0ca549dce1c435ffd2781d3 100644 --- a/man/setup.Rd +++ b/man/setup.Rd @@ -9,6 +9,11 @@ setup() \description{ \code{setup} sources env.R in the repo/project top level folder. } +\seealso{ +Other utils: +\code{\link{loadLibraries}()}, +\code{\link{tidyNum}()} +} \author{ Ben Anderson, \email{b.anderson@soton.ac.uk} } diff --git a/man/tidyNum.Rd b/man/tidyNum.Rd index a6e08d50e60b0e0995eb6bb1923b96a57edb8dc7..4acfdd620f0c7a7907fa646026c3e887dd25c5ee 100644 --- a/man/tidyNum.Rd +++ b/man/tidyNum.Rd @@ -12,6 +12,12 @@ tidyNum(number) \description{ \code{tidyNum} reformats long numbers to include commas and prevents scientific formats } +\seealso{ +Other utils: +\code{\link{loadLibraries}()}, +\code{\link{setup}()} +} \author{ Ben Anderson, \email{b.anderson@soton.ac.uk} } +\concept{utils}