getDatasetVariables(), getDatasetHiddenVariables() and getDatasetPrivateVariables() produce warnings when the option warnPartialMatchArgs is set to TRUE. Setting this option is often recommended to help developers avoid partial argument matching, which is discouraged.[^1] Because getDatasetVariables() is called internally by a number of functions, this warning is very common when working with crunch.
This reprex demonstrates the problem with code from the getting started vignette:
options(warnPartialMatchArgs = TRUE)
library(crunch)
set_crunch_opts("crunch.api" = "https://app.crunch.io/api/")
library(httptest)
start_vignette("crunch")
ds <- newDataset(SO_survey, name="Stack Overflow Developer Survey 2017")
dim(ds)
#> Warning in httpcache::buildCacheKey(varcat_url, query_params, extra =
#> "VariableCatalog"): partial argument match of 'extra' to 'extras'
#> Warning in httpcache::buildCacheKey(varcat_url, extra =
#> "HiddenVariableCatalog"): partial argument match of 'extra' to 'extras'
#> Warning in httpcache::buildCacheKey(varcat_url, extra =
#> "PrivateVariableCatalog"): partial argument match of 'extra' to 'extras'
#> [1] 1634 23
getDatasetVariables()
,getDatasetHiddenVariables()
andgetDatasetPrivateVariables()
produce warnings when the optionwarnPartialMatchArgs
is set toTRUE
. Setting this option is often recommended to help developers avoid partial argument matching, which is discouraged.[^1] BecausegetDatasetVariables()
is called internally by a number of functions, this warning is very common when working with crunch.This reprex demonstrates the problem with code from the getting started vignette:
Created on 2023-07-19 with reprex v2.0.2
[^1]: e.g. in Advanced R