Skip to content
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

fix for support dots, solves #39 #40

Conversation

jangorecki
Copy link
Contributor

tested on data.table_1.9.6.zip file.
I could add tests for that fix but I would need to keep drat_1.0.0.zip locally in inst.

@eddelbuettel
Copy link
Owner

Confirmed.

I am not sure what you are trying to say with

I could add tests for that fix but I would need to keep drat_1.0.0.zip locally in inst.

@jangorecki
Copy link
Contributor Author

wait, underscores seems to be not valid in pkg names, so it don't need to handle them, I will update for just dots
I mean I could add tests for that PR into tests/simpleTests.R but I would need to store some zip locally in inst I believe.

@jangorecki jangorecki force-pushed the pkgname_fix_for_dots_and_underscores branch from edbc4d3 to 312faf4 Compare September 21, 2015 12:05
@jangorecki jangorecki changed the title fix for support dots and underscores, solves #39 fix for support dots, solves #39 Sep 21, 2015
@eddelbuettel
Copy link
Owner

Worked here:

R> gsub("^([a-zA-Z0-9._]*)_.*", "\\1", basename("data.table_1.9.6"))
[1] "data.table"
R> gsub("^([a-zA-Z0-9._]*)_.*", "\\1", basename("data._table_1.9.6"))
[1] "data._table"
R> gsub("^([a-zA-Z0-9._]*)_.*", "\\1", basename("data_table_1.9.6"))
[1] "data_table"
R> 

I will not merge a patch for just dots. So please revert to what you had perform and what I had suggested in #39.

@jangorecki
Copy link
Contributor Author

@eddelbuettel if underscore in the package name is not considered to be valid then why you would like to handle them?

@eddelbuettel
Copy link
Owner

Oh, I would accept that as a counter argument :) Does Writing R Extension prohibit it? Indeed I do not seem to have an installed package with an underscore.

We could still allow this for local / internal packages, or do R CMD build even prohibit it?

@eddelbuettel
Copy link
Owner

Ok, found it:

The mandatory 'Package' field gives the name of the package. This
should contain only (ASCII) letters, numbers and dot, have at least two
characters and start with a letter and not end in a dot. If it needs
explaining, this should be done in the 'Description' field (and not the
'Title' field).

Convinced now :)

eddelbuettel added a commit that referenced this pull request Sep 21, 2015
@eddelbuettel eddelbuettel merged commit 18c3677 into eddelbuettel:master Sep 21, 2015
@jangorecki jangorecki deleted the pkgname_fix_for_dots_and_underscores branch March 16, 2016 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants