Skip to content

Commit

Permalink
Merge pull request #48 from piccolbo/patch-1
Browse files Browse the repository at this point in the history
Accept dots in pkg name
  • Loading branch information
eddelbuettel committed Mar 9, 2016
2 parents bc0ba49 + fe171ae commit b2ff368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pruneRepo.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pruneRepo <- function(repopath=getOption("dratRepo", "~/git/drat"),
pkgs <- sapply(strsplit(files, "_", fixed=TRUE), "[", 1L)

## versions is then the remainder to the right -- FIXME for something better
verstxt <- gsub("[a-zA-Z0-9]*_", "", noextfiles)
verstxt <- gsub("[a-zA-Z0-9\\.]*_", "", noextfiles)

## parse into proper version objects -- thanks, base R!
vers <- package_version(verstxt)
Expand Down

0 comments on commit b2ff368

Please sign in to comment.