diff --git a/R/gen-geom-brown-motion.R b/R/gen-geom-brown-motion.R index 3ad0cb1..e21d8f7 100644 --- a/R/gen-geom-brown-motion.R +++ b/R/gen-geom-brown-motion.R @@ -43,7 +43,7 @@ #' of class matrix will be returned. #' #' @examples -#' ts_geometric_brownian_motion() +#' geometric_brownian_motion() #' #' @return #' A tibble/matrix diff --git a/R/zzz.R b/R/zzz.R new file mode 100644 index 0000000..9d978f4 --- /dev/null +++ b/R/zzz.R @@ -0,0 +1,18 @@ +# On library attachment, print message to user. +.onAttach <- function(libname, pkgname) { + + msg <- paste0( + "\n", + "== Welcome to RandomWalker ========================================================", + "\nIf you find this package useful, please leave a star: ", + "\n https://github.com/spsanderson/RandomWalker'", + "\n", + "\nIf you encounter a bug or want to request an enhancement please file an issue at:", + "\n https://github.com/spsanderson/RandomWalker/issues", + "\n", + "\nThank you for using RandomWalker" + ) + + packageStartupMessage(msg) + +} diff --git a/_pkgdown.yml b/_pkgdown.yml index 835378f..63a5754 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -4,7 +4,6 @@ template: bootswatch: flatly ganalytics: G-BSLLH3X96M - navbar: title: "RandomWalker" left: diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index ebeef21..593a37b 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.1.0 pkgdown_sha: ~ articles: getting-started: getting-started.html -last_built: 2024-07-13T12:59Z +last_built: 2024-07-16T02:17Z urls: reference: https://www.spsanderson.com/RandomWalker/reference article: https://www.spsanderson.com/RandomWalker/articles diff --git a/man/geometric_brownian_motion.Rd b/man/geometric_brownian_motion.Rd index 0e56aaf..052e6f2 100644 --- a/man/geometric_brownian_motion.Rd +++ b/man/geometric_brownian_motion.Rd @@ -66,7 +66,7 @@ of a GBM process. It can be used to analyze the behavior of financial assets and to make informed investment decisions. } \examples{ -ts_geometric_brownian_motion() +geometric_brownian_motion() } \seealso{