Skip to content

Commit

Permalink
Add attach message
Browse files Browse the repository at this point in the history
  • Loading branch information
spsanderson committed Jul 16, 2024
1 parent e4852ea commit 7eba6c4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/gen-geom-brown-motion.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#' of class matrix will be returned.
#'
#' @examples
#' ts_geometric_brownian_motion()
#' geometric_brownian_motion()
#'
#' @return
#' A tibble/matrix
Expand Down
18 changes: 18 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -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)

}
1 change: 0 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ template:
bootswatch: flatly
ganalytics: G-BSLLH3X96M


navbar:
title: "RandomWalker"
left:
Expand Down
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion man/geometric_brownian_motion.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7eba6c4

Please sign in to comment.