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

Retrieve the package name from the DESCRIPTION file #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mcol
Copy link
Collaborator

@mcol mcol commented Nov 19, 2024

This is a minimal fix for #129. I cannot reproduce the project with my packages (also the version of RBest on github doesn't cause the problem reported): @wds15 could you verify that it solves your problem?

@jgabry
Copy link
Member

jgabry commented Nov 19, 2024

Thank you!

@jgabry
Copy link
Member

jgabry commented Nov 20, 2024

@wds15 could you verify that it solves your problem?

Yeah before merging it would be good to know if this solves it. Thanks!

@jgabry jgabry linked an issue Nov 20, 2024 that may be closed by this pull request
@wds15
Copy link

wds15 commented Nov 20, 2024

Thanks for the PR. Happy to check it.

@jgabry
Copy link
Member

jgabry commented Jan 16, 2025

@wds15 were you able to check that this solved the issue you ran into?

@wds15
Copy link

wds15 commented Jan 21, 2025

Sorry for not getting back earlier. So yes, this fix is great as it solves my issue. As a small improvement, I'd suggest to use this line of code to find out the package name:

pkgname <- unname(read.dcf("DESCRIPTION", "Package")[1,1])

this does not make the assumption that the Package name is in the first line of the DESCRIPTION file and should be more robust.

@mcol
Copy link
Collaborator Author

mcol commented Jan 21, 2025

Thanks @wds15, I agree with your solution, I've updated the PR to use that instead.

@wds15
Copy link

wds15 commented Jan 21, 2025

Looks great to me like this. Thanks.

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.

package with Stan functions failed to compile
3 participants