Skip to content

Commit

Permalink
fix for support dots in pkgname, solves #39
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Sep 21, 2015
1 parent 80873a3 commit 312faf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/insertPackage.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ getPackageInfo <- function(file) {
return(fields)
}

pkgname <- gsub("^([a-zA-Z0-9]*)_.*", "\\1", basename(file))
pkgname <- gsub("^([a-zA-Z0-9.]*)_.*", "\\1", basename(file))
path <- file.path(td, pkgname, "DESCRIPTION")
builtstring <- read.dcf(path, 'Built')
unlink(file.path(td, pkgname), recursive=TRUE)
Expand Down

0 comments on commit 312faf4

Please sign in to comment.