Closed romainfrancois closed 2 years ago
Can you provide a devtools::session_info()
output or something? I can not reproduce that error.
Can't seem to reproduce with dev version:
library(dplyr, warn.conflicts = FALSE)
library(imfr)
library(testthat)
#>
#> Attaching package: 'testthat'
#> The following object is masked from 'package:dplyr':
#>
#> matches
expect_error(
imf_data(database_id = "IFS",
indicator = "GG_GALM_G01_XDC",
country = "all",
freq = "A",
start = 1900, end = 2020
),
NA
)
#> | | | 0% | |======================================================================| 100%
#> | | | 0% | |============== | 21% | |======================================================================| 100%
#> | | | 0% | |======================================================================| 100%
#> | | | 0% | |======================================================================| 100%
#> | | | 0% | |======================================================================| 100%
expect_equal(
ncol(imf_data(database_id = "WHDREO", indicator = "PCPI_PCH",
freq = "A", country = c("MX"))),
3
)
#> | | | 0% | |======================================================================| 100%
Created on 2022-02-04 by the reprex package (v2.0.1)
or with the released version:
library(dplyr, warn.conflicts = FALSE)
library(imfr)
library(testthat)
#>
#> Attaching package: 'testthat'
#> The following object is masked from 'package:dplyr':
#>
#> matches
expect_error(
imf_data(database_id = "IFS",
indicator = "GG_GALM_G01_XDC",
country = "all",
freq = "A",
start = 1900, end = 2020
),
NA
)
#> | | | 0% | |======================================================================| 100%
#> | | | 0% | |============== | 20% | |======================================================================| 100%
#> | | | 0% | |======================================================================| 100%
#> | | | 0% | |===================================================================== | 98% | |======================================================================| 100%
#> | | | 0% | |======================================================================| 100%
expect_equal(
ncol(imf_data(database_id = "WHDREO", indicator = "PCPI_PCH",
freq = "A", country = c("MX"))),
3
)
#> | | | 0% | |======================================================================| 100%
Created on 2022-02-04 by the reprex package (v2.0.1)
Closing this here, it was probably a false result of our revdep tests.
We're about to release dplyr 1.0.8 and our reverse dependency checks have identified this issue: