Skip to content

Commit cb1a688

Browse files
replace . with _ in pkg name (#276)
1 parent 6f4a8d6 commit cb1a688

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/register.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ cpp_register <- function(path = ".", quiet = FALSE) {
5454
funs <- get_registered_functions(all_decorations, "cpp11::register", quiet)
5555

5656
package <- desc::desc_get("Package", file = file.path(path, "DESCRIPTION"))
57+
package <- sub("[.]", "_", package)
5758

5859
cpp_functions_definitions <- generate_cpp_functions(funs, package)
5960

0 commit comments

Comments
 (0)