BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

error when using formatOccData() with rlang v 0.3.0 #86

Open galinajonsson opened 5 years ago

galinajonsson commented 5 years ago

I get the following error message when I run formatOccData on data that the function has deal with in the past: Error in summarise_impl(.data, dots) : Evaluation error: as_dictionary() is defunct as of rlang 0.3.0. Please use as_data_pronoun() instead.

The problem seems to be that the sparta code is no longer compatible with the new version of rlang (0.3.0.1). I did have a look trough the code for formatOccData but couldn’t find the as_dictionary() so I believe this issue has to do with a package that sparta uses.

Solution: The code worked fine when I uninstalled rlang v 0.3.0.1 as well as ggplot2, deplyr and tibble (which import rlang v 0.3.0.1) and installed older versions.

AugustT commented 5 years ago

This error is not being picked up on Travis. Need to have a look at why that is, there is a test of formatOccData in the unit tests so it should be failing if there is a problem