ropensci-archive / bomrang

:warning: ARCHIVED :warning: Australian government Bureau of Meteorology (BOM) data client for R
Other
109 stars 26 forks source link

get_historical() issues with dplyr in vignette #110

Closed adamhsparks closed 4 years ago

adamhsparks commented 4 years ago

Perhaps related to https://github.com/ropensci/bomrang/issues/105?

adlmax <- get_historical(stationid = "023000", type = "max")
#> Error in get_historical(stationid = "023000", type = "max"): could not find function "get_historical"
adlmax
#> Error in eval(expr, envir, enclos): object 'adlmax' not found
adlmax %>% 
  select(station_number, year:day, max_temperature) %>% 
  filter(month == 10)
#> Error in adlmax %>% select(station_number, year:day, max_temperature) %>% : could not find function "%>%"

Created on 2020-01-05 by the reprex package (v0.3.0)

I'm working on the devel branch right now.

adamhsparks commented 4 years ago

Wait, I just realised, I have unmerged commits from master after I typed I was working on devel. Let me check that first.

adamhsparks commented 4 years ago

Nope, still there after merging the master branch

adamhsparks commented 4 years ago

Here's the Rmd where I first noted the issue.

https://github.com/ropensci/bomrang/blob/f8618849dc69a2545035733081b3cdb7da7a2438/vignettes/bomrang.Rmd#L1709

jonocarroll commented 4 years ago

I'll try to see what's going on but the first example looks like failure to document/export. The issue with select may be the same (not exported correctly).

adamhsparks commented 4 years ago

I did find one of the @params wasn't documented in there I think and fixed that in the release I sent to CRAN last night. Working on a much larger release with new functionality right now so no hurry.

I just had to fix some tests that were causing failures on CRAN servers and had to get it pushed to CRAN by yesterday.

adamhsparks commented 4 years ago

I've been looking at select() this AM. It's being exported as far as I can tell, it's in the NAMESPACE with all the other dplyr functions that are re-exported.

Still digging to see what I find.

adamhsparks commented 4 years ago

This does work though.

adlmax %>% 
  bomrang::select(station_number, year:day, max_temperature)
adamhsparks commented 4 years ago

Fixed! Will push to devel shortly.

adamhsparks commented 4 years ago

Fixed in https://github.com/ropensci/bomrang/commit/77ddd3028f2243406db84448232aaeeb8372f14a

jonocarroll commented 4 years ago

Is it clear what the issue was? I don't see any changes specific to select in that commit.

adamhsparks commented 4 years ago

No, I'm not clear on what the issue was either. I'm with you. I didn't see any changes in NAMESPACE that fixed it, but it works now. Black magic?

jonocarroll commented 4 years ago

Then let's never question it again, lest it break out of spite. Good work.