ropensci / ruODK

ruODK: An R Client for the ODK Central API
https://docs.ropensci.org/ruODK/
GNU General Public License v3.0
42 stars 13 forks source link

Fix examples of internal functions by adding \donttest{} #64

Closed florianm closed 4 years ago

florianm commented 4 years ago

Running examples in 'ruODK-Ex.R' failed The error most likely occurred in:

base::assign(".ptime", proc.time(), pos = "CheckExEnv")

Name: predict_ruodk_name

Title: Predict a field name after 'tidyr::unnest_wider(namessep="")'

prefixes the form path.

Aliases: predict_ruodk_name

Keywords: internal

** Examples

No test:

testthat::expect_equal(

  • predict_ruodk_name("bar", "Submissions.foo"), "foo_bar"
  • ) Error in predict_ruodk_name("bar", "Submissions.foo") : could not find function "predict_ruodk_name"
florianm commented 4 years ago

\dontrun{} seems to disable = fix the example checking during R CMD CHECK