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

add text argument #64

Merged
merged 7 commits into from
Jul 18, 2023
Merged

add text argument #64

merged 7 commits into from
Jul 18, 2023

Conversation

LewisAJones
Copy link
Collaborator

This PR adds the text argument to get_attribution. This allows the user to return a text paragraph of the attribution information to insert directly into a figure caption or similar.

I am not particularly happy with the approach for getting the license information. I originally thought I could just pull this from the PhyloPic API but when testing this, it doesn’t seem to return all the different licenses. Therefore, this is hardcoded for now, but could be updated!

These updates also now allow get_attribution to be called with multiple uuids at once.

Closes #56.

@LewisAJones LewisAJones added this to the 1.2.0 milestone Jun 29, 2023
@LewisAJones LewisAJones self-assigned this Jun 29, 2023
@LewisAJones LewisAJones linked an issue Jun 29, 2023 that may be closed by this pull request
Copy link
Collaborator

@willgearty willgearty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor requests, then it's good to go. Thanks @LewisAJones!

R/get_attribution.R Outdated Show resolved Hide resolved
R/get_attribution.R Outdated Show resolved Hide resolved
@LewisAJones
Copy link
Collaborator Author

Hi @willgearty, I've implemented your suggestions! The combine_words function is a nice addition!

@willgearty
Copy link
Collaborator

Whoops, you forgot to move knitr from suggests to imports @LewisAJones!

@willgearty
Copy link
Collaborator

willgearty commented Jul 18, 2023

Fixed! I'll merge once the checks pass, thanks!

@willgearty willgearty merged commit 2e19a98 into main Jul 18, 2023
8 checks passed
@willgearty willgearty deleted the text_attribution branch July 18, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_attribution
2 participants