Skip to content

Commit 00fd227

Browse files
committed
add fns name as attribute
1 parent 7eba6c4 commit 00fd227

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

R/auto-rw30.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ rw30 <- function() {
6666
attr(walks_long, "num_steps") <- num_steps
6767
attr(walks_long, "mu") <- mu
6868
attr(walks_long, "sd") <- sd
69+
attr(walks_long, "fns") <- "rw30"
6970

7071
return(walks_long)
7172
}

R/gen-geom-brown-motion.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ geometric_brownian_motion <- function(.num_walks = 25, .n = 100,
114114
attr(ret, "initial_value") <- .initial_value
115115
attr(ret, "delta_time") <- .delta_time
116116
attr(ret, "return_tibble") <- .return_tibble
117-
attr(ret, "motion_type") <- "Geometric Brownian Motion"
117+
attr(ret, "fns") <- "geometric_brownian_motion"
118118

119119
return(ret)
120120
}

R/gen-random-normal-walk.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ random_normal_walk <- function(.num_walks = 25, .n = 100, .mu = 0, .sd = .1,
113113
attr(res, "replace") <- replace
114114
attr(res, "samp") <- samp
115115
attr(res, "samp_size") <- samp_size
116+
attr(res, "fns") <- "random_normal_walk"
116117

117118
# Return
118119
return(res)

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"\n",
66
"== Welcome to RandomWalker ========================================================",
77
"\nIf you find this package useful, please leave a star: ",
8-
"\n https://github.com/spsanderson/RandomWalker'",
8+
"\n https://github.com/spsanderson/RandomWalker",
99
"\n",
1010
"\nIf you encounter a bug or want to request an enhancement please file an issue at:",
1111
"\n https://github.com/spsanderson/RandomWalker/issues",

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pkgdown: 2.1.0
33
pkgdown_sha: ~
44
articles:
55
getting-started: getting-started.html
6-
last_built: 2024-07-16T02:17Z
6+
last_built: 2024-07-16T02:18Z
77
urls:
88
reference: https://www.spsanderson.com/RandomWalker/reference
99
article: https://www.spsanderson.com/RandomWalker/articles

0 commit comments

Comments
 (0)