Skip to content

Commit

Permalink
fixes #7 and fixes #6 involves forgot_fx() call
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam committed Nov 8, 2024
1 parent 86dbfd5 commit 007392d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/forgot.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ forgot_usg <- function(pkg, function_name,
function_name <- deparse(substitute(function_name))
}
f <- forgot_fx(
pkg = pkg, function_name,
pkg = {{pkg}},
function_name = {{function_name}},
field = "usage",
print = FALSE)[[1]]
cat(f)
Expand Down Expand Up @@ -237,7 +238,8 @@ forgot_exmpls <- function(pkg, function_name,
function_name <- deparse(substitute(function_name))
}
f <- forgot_fx(
pkg = pkg, function_name,
pkg = {{pkg}},
function_name = {{function_name}},
field = "examples",
print = FALSE)[[1]]
cat(f)
Expand Down Expand Up @@ -271,7 +273,8 @@ forgot_params <- function(pkg, function_name,
function_name <- deparse(substitute(function_name))
}
f <- forgot_fx(
pkg = {{pkg}}, {{function_name}},
pkg = {{pkg}},
function_name = {{function_name}},
field = "params",
print = FALSE)[[1]]
f <- eval(parse(text = f))
Expand Down

0 comments on commit 007392d

Please sign in to comment.