Skip to content

Commit

Permalink
avoid invoking wrong 'get'
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Jun 11, 2024
1 parent c8c3a5c commit 1d7ce1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/tinytest/test_rcpp_package_skeleton.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for (file in grep("RcppExports.R", R_files, invert=TRUE, value=TRUE)) {
code <- readLines(file)
fn <- eval(parse(text=paste(code, collapse="\n")))
fn_name <- gsub(".*/(.*)\\.R$", "\\1", file)
checkIdentical(fn, get(fn_name),
checkIdentical(fn, base::get(fn_name),
sprintf("we parsed the function '%s' correctly", fn_name)
)
}
Expand Down

0 comments on commit 1d7ce1b

Please sign in to comment.