-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
insert binary package - bug when detecting pkgname #39
Comments
Can you cook up a patched reg.exp? Ie some (local) tests would we welcome. |
I'm not good in regex, maybe f = function(file){
pkgname = strsplit(file, "_", fixed=TRUE)[[1L]]
paste(pkgname[-length(pkgname)], collapse="_")
}
sapply(c("my_pkg_1.0.0.zip","my.pkg_1.0.0.zip"), f)
# my_pkg_1.0.0.zip my.pkg_1.0.0.zip
# "my_pkg" "my.pkg" |
Try adding It may break detection of the package version though. |
jangorecki
added a commit
to jangorecki/drat
that referenced
this issue
Sep 21, 2015
jangorecki
added a commit
to jangorecki/drat
that referenced
this issue
Sep 21, 2015
eddelbuettel
added a commit
that referenced
this issue
Sep 21, 2015
…scores fix for support dots, solves #39
fix already merged in #40 |
jdrussell
pushed a commit
to jdrussell/drat
that referenced
this issue
Jun 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be a bug in getPackageInfo
In regex in linked line seems that
getPackageInfo
is not handling dots in package name.Which later results in error.
To reproduce take the
zip
binaries of package with dots in the name and tryinsertPackage()
on it.The text was updated successfully, but these errors were encountered: