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

readme install_github() typo? #27

Closed
zackarno opened this issue Nov 2, 2023 · 2 comments
Closed

readme install_github() typo? #27

zackarno opened this issue Nov 2, 2023 · 2 comments

Comments

@zackarno
Copy link

zackarno commented Nov 2, 2023

Thanks for the package! I just got it installed and i believe i noted a typo in the readme installation instructions:

You've written

devtools::install_github("nawendt/gribr", configure.args="ECCODES_LIBS=-L/path/to/eccodes/lib ECCODES_CPPFLAGS=-I/path/to/eccodes/include")

when I think it should be (like in the install.packages() version):

devtools::install_github("nawendt/gribr",configure.args=c("ECCODES_LIBS=-L/path/to/eccodes/lib", "ECCODES_CPPFLAGS=-I/path/to/eccodes/include"))
@nawendt
Copy link
Owner

nawendt commented Nov 5, 2023

It turns out that it works both ways. Looking at the documentation, it says about configure.args:

If a character vector with no names is supplied, the elements are concatenated into a single string (separated by a space)...

The single string is essentially treated like a character vector with one element. All vectors will just get turned into a single string anyway. It's probably more "canonical" to use the character vector version, however. I'll think about changing it, but I don't think doing it either way will cause anyone any trouble.

@zackarno
Copy link
Author

zackarno commented Nov 6, 2023

Nice i didn't realize it worked both ways. I thought that adjustment was the solution that the resolved the errors I was getting. But it must have been another slight adjustment I made to the code without properly tracking the sequence I was executing the code. Thanks for the reply anyways!

@nawendt nawendt closed this as completed Jul 12, 2024
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

No branches or pull requests

2 participants