Skip to content

Commit bb17924

Browse files
committed
scan .c files during compileAttributes
Necessary to discover R_init_pkgname functions defined within .c files (e.g. init.c)
1 parent 3f3bf08 commit bb17924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/Attributes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
422422
dir.create(rDir)
423423

424424
# get a list of all source files
425-
cppFiles <- list.files(srcDir, pattern = "\\.((c(c|pp))|(h(pp)?))$")
425+
cppFiles <- list.files(srcDir, pattern = "\\.((c(c|pp)?)|(h(pp)?))$")
426426

427427
# derive base names (will be used for modules)
428428
cppFileBasenames <- tools::file_path_sans_ext(cppFiles)

0 commit comments

Comments
 (0)