-
Notifications
You must be signed in to change notification settings - Fork 1
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
Return data slots #87
Conversation
For indicator_introduction_year function
Major change as this update could break some code based on previous versions
@SanderDevisscher: there are strange issues while installing dependencies on Win and macOS machines in automatic checks (see the GitHub actions in the box). However this shouldn't be a problem for you to review the PR. So, do it whenever you want it. Meanwhile, I will try to solve these check related issues. |
Temp solution: win and mac operative systems removed from automatic checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@damianooldoni I think you currently export the wrong dataframe in the data_top_graph slot for indicator_total_year. It now contains these columns year , key, kingdom & first_observed. Can you check this ?
Function What I see is that I use
Is this what you want? |
that is exactly what I want ;-) |
@damianooldoni should I wait for all checks to finish before merging or does it not matter ? |
Well, a good rule is to wait for it. Just to be 100% sure. But, if you have urgent need, merge. Still, it hsould not take so much time more. |
I'll wait |
This PR has the goal to solve #84 by changing the output returned by
indicator_total_year
andindicator_introduction_year
functions. Instead of returning a plot (with or without facting) now the functions return a list with three slots:plot
slot containing the plot as beforedata_top_graph
, the data.frame used in the top graph, i.e. the global plotdata_facet_graph
, the data.frame used in the facet graph, i.e. the plot below the global one, showing the facetingAs this update can break code, this is a major change and so I bumped the version to 2.0.0.
Some minor changes:
rename_at()
ormutate_all()
distinct_()