Skip to content

Commit a6f76ad

Browse files
oops again
1 parent 24e01a6 commit a6f76ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

R/Rcpp.package.skeleton.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,16 @@ Rcpp.package.skeleton <- function(
119119
}
120120

121121
# update the package description help page
122-
package_help_page <- file.path( root, "man", sprintf( "%s-package.Rd" ) )
122+
package_help_page <- file.path( root, "man", sprintf( "%s-package.Rd", name ) )
123123
if( file.exists(package_help_page) ){
124124
lines <- readLines(package_help_page)
125-
lines <- gsub( "What license is it under?", license, fixed = TRUE )
125+
lines <- gsub( "What license is it under?", license, lines, fixed = TRUE )
126126
lines <- gsub( "Who to complain to <yourfault@somewhere.net>",
127-
sprintf( "%s <%s>", maintainer, email),
127+
sprintf( "%s <%s>", maintainer, email),
128+
lines,
128129
fixed = TRUE
129130
)
130-
lines <- gsub( "Who wrote it", author, fixed = TRUE )
131+
lines <- gsub( "Who wrote it", author, lines, fixed = TRUE )
131132
writeLines( lines, package_help_page )
132133
}
133134

0 commit comments

Comments
 (0)