Running ‘spelling.R’ [10s/10s]
  Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ...4,20d3
< Potential spelling errors:
<   WORD        FOUND IN
< Dataset's   dataset-variables.Rd:15
<             describe-catalog.Rd:83
< Snowden's   analyze.Rmd:246
< dataset's   addVariables.Rd:22
<             createWithMetadataAndFile.Rd:10
<             filter-catalog.Rd:10
<             forkDataset.Rd:25
<             hiddenVariables.Rd:5,19
<             modifyWeightVariables.Rd:11,37,44
<             newFilter.Rd:25
<             versions.Rd:17
<             weightVariables.Rd:8,22
<             crunch-internals.Rmd:17
<             datasets.Rmd:62
<             filters.Rmd:76
  Running ‘testthat.R’ [32s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(httptest)
  Loading required package: testthat
  > if (nchar(Sys.getenv("JENKINS_HOME"))) {
  +     options(
  +         crunch.check.updates=FALSE,
  +         testthat.tap.output_file=file.path(Sys.getenv("WORKSPACE"), "rcrunch.tap"),
  +         testthat.junit.output_file=file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml")
  +     )
  +     test_check("crunch",
  +         reporter=MultiReporter$new(list(
  +             SummaryReporter$new(),
  +             TapReporter$new(),
  +             JunitReporter$new()
  +         )))
  + } else {
  +     test_check("crunch")
  + }
  Loading required package: crunch
  
  Attaching package: 'crunch'
  
  The following object is masked from 'package:utils':
  
      write.csv
  
  The following object is masked from 'package:base':
  
      table
  
  ── 1. Error: Adding a variable with all the same values gets sent more concisely
  could not find function "make_label"
  1: expect_POST(ds$newvar <- rep(5, 25), "https://app.crunch.io/api/datasets/1/variables/", 
         "{\"values\":5,\"type\":\"numeric\",\"name\":\"newvar\",\"alias\":\"newvar\"}") at testthat/test-add-variable.R:103
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 2. Error: crunch.debug does not print if disabled (@test-api.R#12)  ─────────
  could not find function "make_label"
  1: expect_POST(expect_output(crPOST("https://app.crunch.io/api/", body = "{\"value\":1}"), 
         NA), "https://app.crunch.io/api/", "{\"value\":1}") at testthat/test-api.R:12
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 3. Error: crunch.debug logging if enabled (@test-api.R#19)  ─────────────────
  could not find function "make_label"
  1: with(temp.option(crunch.debug = TRUE), {
         expect_POST(expect_output(crPOST("https://app.crunch.io/api/", body = "{\"value\":1}"), 
             "\n {\"value\":1} \n", fixed = TRUE), "https://app.crunch.io/api/", "{\"value\":1}")
         testthat::expect_output(ds <- loadDataset("test ds"), NA)
     }) at testthat/test-api.R:19
  2: with.contextManager(temp.option(crunch.debug = TRUE), {
         expect_POST(expect_output(crPOST("https://app.crunch.io/api/", body = "{\"value\":1}"), 
             "\n {\"value\":1} \n", fixed = TRUE), "https://app.crunch.io/api/", "{\"value\":1}")
         testthat::expect_output(ds <- loadDataset("test ds"), NA)
     })
  3: eval(substitute(expr), envir = parent.frame())
  4: eval(substitute(expr), envir = parent.frame())
  5: expect_POST(expect_output(crPOST("https://app.crunch.io/api/", body = "{\"value\":1}"), 
         "\n {\"value\":1} \n", fixed = TRUE), "https://app.crunch.io/api/", "{\"value\":1}") at testthat/test-api.R:20
  6: expect_mock_request(object, "POST ", url, " ", ...)
  7: request_happened(object, expected, fixed = TRUE)
  
  ── 4. Error: If no filtering, 'where' and 'filter' are omitted (@test-append-sub
  could not find function "make_label"
  1: expect_POST(appendDataset(ds1, ds2), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":", "{\"dataset\":\"https://app.crunch.io/api/datasets/3/\"}}") at testthat/test-append-subset.R:7
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 5. Error: Append with filter (@test-append-subset.R#13)  ────────────────────
  could not find function "make_label"
  1: expect_POST(appendDataset(ds1, ds2[ds2$gender == "Male", ]), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":", "{\"dataset\":\"https://app.crunch.io/api/datasets/3/\",", 
         "\"filter\":{\"function\":\"==\",\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/gender/\"},{\"value\":1}]}}}") at testthat/test-append-subset.R:13
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 6. Error: Append with variable selection (@test-append-subset.R#20)  ────────
  could not find function "make_label"
  1: expect_POST(appendDataset(ds1, ds2[c("gender", "birthyr")]), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":", "{\"dataset\":\"https://app.crunch.io/api/datasets/3/\",", 
         "\"where\":{\"function\":\"select\",\"args\":[{\"map\":{\"66ae9881e3524f7db84970d556c34552\":{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/gender/\"},\"f78ca47313144b57adfb495893968e70\":{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/birthyr/\"}}}]}}}") at testthat/test-append-subset.R:20
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 7. Error: Append with variable selection and filter (@test-append-subset.R#27
  could not find function "make_label"
  1: expect_POST(appendDataset(ds1, ds2[ds2$gender == "Male", c("gender", "birthyr")]), 
         "https://app.crunch.io/api/datasets/1/batches/", "{\"element\":\"shoji:entity\",\"body\":", 
         "{\"dataset\":\"https://app.crunch.io/api/datasets/3/\",", "\"where\":{\"function\":\"select\",\"args\":[{\"map\":{\"66ae9881e3524f7db84970d556c34552\":{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/gender/\"},\"f78ca47313144b57adfb495893968e70\":{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/birthyr/\"}}}]},", 
         "\"filter\":{\"function\":\"==\",\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/gender/\"},{\"value\":1}]}}}") at testthat/test-append-subset.R:27
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 8. Error: append DELETEs the pk (@test-appending.R#22)  ─────────────────────
  could not find function "make_label"
  1: expect_DELETE(appendDataset(ds2, ds1), "https://app.crunch.io/api/datasets/3/pk/") at testthat/test-appending.R:22
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 9. Error: appendDataset shows deprecation warnings (@test-appending.R#27)  ──
  could not find function "make_label"
  1: expect_warning(expect_POST(appendDataset(ds1, ds2, autorollback = TRUE), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"dataset\":", "\"https://app.crunch.io/api/datasets/3/\"}}"), 
         paste("The", sQuote("autorollback"), "argument is deprecated and has no effect")) at testthat/test-appending.R:27
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(appendDataset(ds1, ds2, autorollback = TRUE), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"dataset\":", "\"https://app.crunch.io/api/datasets/3/\"}}")
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  
  ── 10. Error: is.selected assignment methods (@test-categories.R#200)  ─────────
  could not find function "make_label"
  1: expect_PATCH(is.selected(categories(ds$mymrset)) <- c(TRUE, TRUE, TRUE), "https://app.crunch.io/api/datasets/1/variables/mymrset/", 
         true_body) at testthat/test-categories.R:200
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 11. Error: changeCategoryID errors with bad inputs (@test-categories.R#297)  
  could not find function "make_label"
  1: expect_PATCH(changeCategoryID(ds$gender, 2, 6), "https://app.crunch.io/api/datasets/1/variables/gender/", 
         "{\"categories\":[{\"id\":1,\"missing\":false,\"name\":\"Male\",\"numeric_value\":1},{\"id\":2,\"missing\":false,\"name\":\"__TO_DELETE__\",\"numeric_value\":2},{\"id\":-1,\"missing\":true,\"name\":\"No Data\",\"numeric_value\":null}]}") at testthat/test-categories.R:297
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 12. Error: collapseCategories takes no action when from and to are the same (
  could not find function "make_label"
  1: expect_no_request(collapseCategories(ds$location, "London", "London")) at testthat/test-combine-categories.R:140
  2: request_happened(object, NA)
  
  ── 13. Error: collapseCategories updates categories when merging into a new cate
  could not find function "make_label"
  1: expect_PATCH(var <- collapseCategories(ds$location, c("London", "Scotland"), "GB"), 
         "https://app.crunch.io/api/datasets/1/variables/location/", "{\"categories\":[{\"id\":1,\"missing\":false,\"name\":\"London\",\"numeric_value\":1},{\"id\":2,\"missing\":false,\"name\":\"Scotland\",\"numeric_value\":2},{\"id\":-1,\"missing\":true,\"name\":\"No Data\",\"numeric_value\":null},{\"id\":3,\"name\":\"GB\"}]}") at testthat/test-combine-categories.R:143
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 14. Error: collapseCategories updates the variable (@test-combine-categories.
  could not find function "make_label"
  1: expect_POST(var <- collapseCategories(ds$location, "Scotland", "London"), "https://app.crunch.io/api/datasets/1/table/", 
         "{\"command\":\"update\",\"variables\":{\"https://app.crunch.io/api/datasets/1/variables/location/\":{\"value\":1}},\"filter\":{\"function\":\"==\",\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/location/\"},{\"value\":2}]}}") at testthat/test-combine-categories.R:148
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 15. Error: collapseCategories modifies category name (@test-combine-categorie
  could not find function "make_label"
  1: expect_PATCH(categories(ds$gender) <- collapseCategories(ds$gender, "Female", "woman"), 
         "https://app.crunch.io/api/datasets/1/variables/gender/", "{\"categories\":[{\"id\":1,\"missing\":false,\"name\":\"Male\",\"numeric_value\":1},{\"id\":2,\"missing\":false,\"name\":\"woman\",\"numeric_value\":2},{\"id\":-1,\"missing\":true,\"name\":\"No Data\",\"numeric_value\":null}]}") at testthat/test-combine-categories.R:154
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 16. Error: Basic box (@test-crunchbox.R#82)  ────────────────────────────────
  could not find function "make_label"
  1: expect_POST(crunchBox(ds, filters = NULL), "https://app.crunch.io/api/datasets/1/boxdata/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[]}}") at testthat/test-crunchbox.R:82
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 17. Error: Basic box with metadata and filters (@test-crunchbox.R#87)  ──────
  could not find function "make_label"
  1: expect_POST(crunchBox(ds, title = "Test box"), "https://app.crunch.io/api/datasets/1/boxdata/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[", "{\"filter\":\"https://app.crunch.io/api/datasets/1/filters/filter1/\"},", 
         "{\"filter\":\"https://app.crunch.io/api/datasets/1/filters/filter2/\"}],", "\"title\":\"Test box\"}}") at testthat/test-crunchbox.R:87
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 18. Error: Select variables in box (@test-crunchbox.R#95)  ──────────────────
  could not find function "make_label"
  1: expect_POST(crunchBox(ds[2:5], filters = NULL), "https://app.crunch.io/api/datasets/1/boxdata/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[],", "\"where\":{\"function\":\"select\",\"args\":[{\"map\":{", 
         "\"66ae9881e3524f7db84970d556c34552\":", "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "\"loc\":", "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/location/\"},", 
         "\"949d2dc7e7a24e6090cc88bb92e1d2fb\":", "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/mymrset/\"},", 
         "\"text\":{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/textVar/\"}", 
         "}}]}}}") at testthat/test-crunchbox.R:95
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 19. Error: Hidden variables are automatically 'selected' out (@test-crunchbox
  could not find function "make_label"
  1: expect_POST(crunchBox(ds3), "https://app.crunch.io/api/datasets/3/boxdata/", "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[],\"where\":", 
         "{\"function\":\"select\",\"args\":[{\"map\":{", "\"66ae9881e3524f7db84970d556c34552\":", 
         "{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/gender/\"},", 
         "\"d7c21314ca9e453c93069168681a285c\":", "{\"variable\":\"https://app.crunch.io/api/datasets/3/variables/starttime/\"}}}]}}}") at testthat/test-crunchbox.R:109
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 20. Error: Select filters in box (@test-crunchbox.R#119)  ───────────────────
  could not find function "make_label"
  1: expect_POST(crunchBox(ds, filters = filters(ds)[c(2, 1)], title = "Test box"), "https://app.crunch.io/api/datasets/1/boxdata/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[", "{\"filter\":\"https://app.crunch.io/api/datasets/1/filters/filter2/\"},", 
         "{\"filter\":\"https://app.crunch.io/api/datasets/1/filters/filter1/\"}],", "\"title\":\"Test box\"}}") at testthat/test-crunchbox.R:119
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 21. Error: Boxes can have color palletes specified (@test-crunchbox.R#131)  ─
  could not find function "make_label"
  1: expect_POST(crunchBox(ds, brand_colors = c("#ff0aa4", "#af17ff", "#260aff"), filters = NULL), 
         "https://app.crunch.io/api/datasets/1/boxdata/", "{\"element\":\"shoji:entity\",\"body\":{\"filters\":[]", 
         ",\"display_settings\":{\"palette\":{\"brand_colors\":", "{\"primary\":\"#ff0aa4\",\"secondary\":\"#af17ff\",", 
         "\"message\":\"#260aff\"}}}}}") at testthat/test-crunchbox.R:131
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 22. Error: is.archived setter (@test-dataset-catalog.R#80)  ─────────────────
  could not find function "make_label"
  1: expect_PATCH(is.archived(datcat[1]) <- TRUE, "https://app.crunch.io/api/datasets/", 
         "{\"https://app.crunch.io/api/datasets/3/\":{\"archived\":true}}") at testthat/test-dataset-catalog.R:80
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 23. Error: is.published setter (@test-dataset-catalog.R#88)  ────────────────
  could not find function "make_label"
  1: expect_PATCH(is.published(datcat[c(1, 3)]) <- TRUE, "https://app.crunch.io/api/datasets/", 
         "{\"https://app.crunch.io/api/datasets/3/\":{\"is_published\":true}}") at testthat/test-dataset-catalog.R:88
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 24. Error: Dataset attribute setting (@test-dataset-entity.R#22)  ───────────
  could not find function "make_label"
  1: expect_PATCH(name(ds) <- "New name", "https://app.crunch.io/api/datasets/", "{\"https://app.crunch.io/api/datasets/1/\":{\"name\":\"New name\"}}") at testthat/test-dataset-entity.R:22
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 25. Error: archive setting (@test-dataset-entity.R#44)  ─────────────────────
  could not find function "make_label"
  1: expect_PATCH(is.archived(ds2) <- TRUE, "https://app.crunch.io/api/datasets/", "{\"https://app.crunch.io/api/datasets/3/\":{\"archived\":true}}") at testthat/test-dataset-entity.R:44
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 26. Error: draft/publish setting (@test-dataset-entity.R#60)  ───────────────
  could not find function "make_label"
  1: expect_PATCH(is.published(ds2) <- TRUE, "https://app.crunch.io/api/datasets/", "{\"https://app.crunch.io/api/datasets/3/\":{\"is_published\":true}}") at testthat/test-dataset-entity.R:60
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 27. Error: startDate<- makes correct request (@test-dataset-entity.R#88)  ───
  could not find function "make_label"
  1: expect_PATCH(startDate(ds2) <- today, "https://app.crunch.io/api/datasets/", "{\"https://app.crunch.io/api/datasets/3/\":{\"start_date\":\"2016-02-11\"}}") at testthat/test-dataset-entity.R:88
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 28. Error: endDate<- makes correct request (@test-dataset-entity.R#96)  ─────
  could not find function "make_label"
  1: expect_PATCH(endDate(ds2) <- today, "https://app.crunch.io/api/datasets/", "{\"https://app.crunch.io/api/datasets/3/\":{\"end_date\":\"2016-02-11\"}}") at testthat/test-dataset-entity.R:96
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 29. Error: Changing dataset settings (@test-dataset-entity.R#264)  ──────────
  could not find function "make_label"
  1: expect_PATCH(settings(ds)$viewers_can_export <- TRUE, "https://app.crunch.io/api/datasets/1/settings/", 
         "{\"viewers_can_export\":true}") at testthat/test-dataset-entity.R:264
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 30. Error: No request made if not altering a setting (@test-dataset-entity.R#
  could not find function "make_label"
  1: expect_no_request(settings(ds)$viewers_can_export <- FALSE) at testthat/test-dataset-entity.R:269
  2: request_happened(object, NA)
  
  ── 31. Error: Can set a NULL setting (@test-dataset-entity.R#272)  ─────────────
  could not find function "make_label"
  1: expect_PATCH(settings(ds)$viewers_can_export <- NULL, "https://app.crunch.io/api/datasets/1/settings/", 
         "{\"viewers_can_export\":null}") at testthat/test-dataset-entity.R:272
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 32. Error: Can set a variable as weight (@test-dataset-entity.R#277)  ───────
  could not find function "make_label"
  1: expect_PATCH(settings(ds)$weight <- ds$gender, "https://app.crunch.io/api/datasets/1/settings/", 
         "{\"weight\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"}") at testthat/test-dataset-entity.R:277
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 33. Error: Dataset deleting (@test-dataset-entity.R#287)  ───────────────────
  could not find function "make_label"
  1: with_consent(expect_DELETE(delete(ds), self(ds))) at testthat/test-dataset-entity.R:287
  2: with(consent(), eval.parent(expr))
  3: with.contextManager(consent(), eval.parent(expr))
  4: eval(substitute(expr), envir = parent.frame())
  5: eval(substitute(expr), envir = parent.frame())
  6: eval.parent(expr)
  7: eval(expr, p)
  8: expect_DELETE(delete(ds), self(ds))
  9: expect_mock_request(object, "DELETE ", url)
  10: request_happened(object, expected, fixed = TRUE)
  
  ── 34. Error: Dashboard URL (@test-dataset-entity.R#292)  ──────────────────────
  could not find function "make_label"
  1: expect_PATCH(dashboard(ds) <- "https://shiny.crunch.io/example/", "https://app.crunch.io/api/datasets/1/", 
         "{\"app_settings\":{\"whaam\":", "{\"dashboardUrl\":\"https://shiny.crunch.io/example/\"}}}") at testthat/test-dataset-entity.R:292
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 35. Error: Primary key methods (@test-dataset-entity.R#301)  ────────────────
  could not find function "make_label"
  1: expect_POST(pk(ds) <- ds$textVar, "https://app.crunch.io/api/datasets/1/pk/", "{\"pk\":[\"https://app.crunch.io/api/datasets/1/variables/textVar/\"]}") at testthat/test-dataset-entity.R:301
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 36. Error: pendingStream gets pending messages (@test-dataset-stream.R#19)  ─
  could not find function "make_label"
  1: expect_GET(pendingStream(ds2), "https://app.crunch.io/api/datasets/2/stream") at testthat/test-dataset-stream.R:19
  2: expect_mock_request(object, "GET ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 37. Error: streamRows streams rows (@test-dataset-stream.R#24)  ─────────────
  could not find function "make_label"
  1: expect_POST(streamRows(ds, data = mock_stream_rows), "https://app.crunch.io/api/datasets/1streaming/stream/", 
         "{\"birthyr\":0.5775,\"gender\":2,\"subvar1\":2,\"subvar2\":1,\"subvar3\":1,", 
         "\"textVar\":\"a\",\"starttime\":\"1955-12-28\"}\n", "{\"birthyr\":0.5775,\"gender\":1,\"subvar1\":2,\"subvar2\":1,\"subvar3\":1,", 
         "\"textVar\":\"b\",\"starttime\":\"1955-12-29\"}") at testthat/test-dataset-stream.R:24
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 38. Error: appendStream (@test-dataset-stream.R#37)  ────────────────────────
  could not find function "make_label"
  1: expect_POST(appendStream(ds), "https://app.crunch.io/api/datasets/1streaming/batches/", 
         "{\"element\":\"shoji:entity\",\"body\":{", "\"type\":\"ldjson\",\"stream\":null}") at testthat/test-dataset-stream.R:37
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 39. Error: deriveArray works with MR (@test-derive-array.R#6)  ──────────────
  could not find function "make_label"
  1: expect_POST(ds$derived_mr <- deriveArray(list(ds$gender), selections = list("Female"), 
         name = "derivedMR"), "https://app.crunch.io/api/datasets/1/variables/", "{\"derivation\":{\"function\":\"select_categories\",\"args\":", 
         "[{\"function\":\"array\",\"args\":[{\"function\":\"select\",\"args\":", "[{\"map\":{\"1\":{\"variable\":\"https://app.crunch.io/api/datasets", 
         "/1/variables/gender/\"}}},{\"value\":[\"1\"]}]}]},{\"value\":", "[\"Female\"]}]},\"name\":\"derivedMR\",\"alias\":\"derived_mr\"}") at testthat/test-derive-array.R:6
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 40. Error: derivation()<- issues a PATCH (@test-derive.R#32)  ───────────────
  could not find function "make_label"
  1: expect_PATCH(derivation(birthyrPlus) <- ds$birthyr + 1, "https://app.crunch.io/api/datasets/1/variables/birthyrPlus/", 
         "{\"derivation\":{\"function\":\"+\",\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/birthyr/\"},{\"value\":1}]}}") at testthat/test-derive.R:32
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 41. Error: derivation()<-NULL and is.derived()<-FALSE issues a PATCH (@test-d
  could not find function "make_label"
  1: expect_PATCH(derivation(birthyrPlus) <- NULL, "https://app.crunch.io/api/datasets/1/variables/birthyrPlus/", 
         "{\"derived\":false}") at testthat/test-derive.R:38
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 42. Error: derivation()<-NULL with a non-derived variable does not error. (@t
  could not find function "make_label"
  1: expect_no_request(derivation(ds$birthyr) <- NULL) at testthat/test-derive.R:50
  2: request_happened(object, NA)
  
  ── 43. Error: dropRows generates the right request (@test-drop-rows.R#6)  ──────
  could not find function "make_label"
  1: expect_POST(dropRows(ds, ds$gender == "Male"), "https://app.crunch.io/api/datasets/1/table/", 
         "{\"command\":\"delete\",\"filter\":{\"function\":\"==\",", "\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "{\"value\":1}]}}") at testthat/test-drop-rows.R:6
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 44. Error: Set exclusion (@test-exclusion-filter.R#12)  ─────────────────────
  could not find function "make_label"
  1: expect_PATCH(exclusion(ds) <- NULL, "https://app.crunch.io/api/datasets/1/exclusion/", 
         "{\"expression\":{}}") at testthat/test-exclusion-filter.R:12
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 45. Error: Export POST request (@test-export-dataset.R#6)  ──────────────────
  could not find function "make_label"
  1: expect_POST(exportDataset(ds, file = ""), "https://app.crunch.io/api/datasets/1/export/csv/", 
         "{\"filter\":null,\"options\":{\"use_category_ids\":false}}") at testthat/test-export-dataset.R:6
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 46. Error: with categorical='id' (@test-export-dataset.R#14)  ───────────────
  could not find function "make_label"
  1: expect_POST(write.csv(ds, file = "", categorical = "id"), "https://app.crunch.io/api/datasets/1/export/csv/", 
         "{\"filter\":null,\"options\":{\"use_category_ids\":true}}") at testthat/test-export-dataset.R:14
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 47. Error: with na (@test-export-dataset.R#19)  ─────────────────────────────
  could not find function "make_label"
  1: expect_POST(write.csv(ds, file = "", na = ""), "https://app.crunch.io/api/datasets/1/export/csv/", 
         "{\"filter\":null,\"options\":{\"use_category_ids\":false,", "\"missing_values\":\"\"}}") at testthat/test-export-dataset.R:19
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 48. Error: Export SPSS request (@test-export-dataset.R#29)  ─────────────────
  could not find function "make_label"
  1: expect_POST(exportDataset(ds, file = "", format = "spss"), "https://app.crunch.io/api/datasets/1/export/spss/", 
         "{\"filter\":null,\"options\":{\"var_label_field\":\"name\"}}") at testthat/test-export-dataset.R:29
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 49. Error: Export SPSS ignores 'categorical' arg (@test-export-dataset.R#34) 
  could not find function "make_label"
  1: expect_POST(exportDataset(ds, file = "", format = "spss", categorical = "zzzz"), 
         "https://app.crunch.io/api/datasets/1/export/spss/", "{\"filter\":null,\"options\":{\"var_label_field\":\"name\"}}") at testthat/test-export-dataset.R:34
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 50. Error: Export SPSS request with varlabel (@test-export-dataset.R#39)  ───
  could not find function "make_label"
  1: expect_POST(exportDataset(ds, file = "", format = "spss", varlabel = "description"), 
         "https://app.crunch.io/api/datasets/1/export/spss/", "{\"filter\":null,\"options\":{\"var_label_field\":\"description\"}}") at testthat/test-export-dataset.R:39
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 51. Error: Export with additional options (@test-export-dataset.R#44)  ──────
  could not find function "make_label"
  1: expect_POST(exportDataset(ds, file = "", format = "spss", otheropt = TRUE), "https://app.crunch.io/api/datasets/1/export/spss/", 
         "{\"filter\":null,\"options\":{\"otheropt\":true,\"var_label_field\":\"name\"}}") at testthat/test-export-dataset.R:44
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 52. Error: Exporting only one variable (@test-export-dataset.R#58)  ─────────
  could not find function "make_label"
  1: expect_POST(write.csv(ds["gender"], file = ""), "https://app.crunch.io/api/datasets/1/export/csv/", 
         "{\"filter\":null,\"where\":{\"function\":\"select\",", "\"args\":[{\"map\":{\"66ae9881e3524f7db84970d556c34552\":", 
         "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"}}}]},", 
         "\"options\":{\"use_category_ids\":false}}") at testthat/test-export-dataset.R:58
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 53. Error: Filter entity is.public (@test-filters.R#54)  ────────────────────
  could not find function "make_label"
  1: expect_PATCH(is.public(f) <- TRUE, "https://app.crunch.io/api/datasets/1/filters/filter1/", 
         "{\"is_public\":true}") at testthat/test-filters.R:54
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 54. Error: Assigning filters<- on a dataset doesn't itself modify anything (@
  could not find function "make_label"
  1: expect_no_request(filters(ds) <- filters(ds)[c(2, 1)]) at testthat/test-filters.R:61
  2: request_happened(object, NA)
  
  ── 55. Error: Create a filter by newFilter (@test-filters.R#66)  ───────────────
  could not find function "make_label"
  1: expect_POST(newFilter("A filter", ds$gender == "Male", catalog = filters(ds)), "https://app.crunch.io/api/datasets/1/filters/", 
         "{\"name\":\"A filter\",\"expression\":", "{\"function\":\"==\",\"args\":[", 
         "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "{\"value\":1}]}}") at testthat/test-filters.R:66
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 56. Error: newFilter without explicitly setting 'catalog' (@test-filters.R#81
  could not find function "make_label"
  1: expect_POST(newFilter("A filter", ds$gender == "Male", catalog = ds), "https://app.crunch.io/api/datasets/1/filters/", 
         "{\"name\":\"A filter\",\"expression\":", "{\"function\":\"==\",\"args\":[", 
         "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "{\"value\":1}]}}") at testthat/test-filters.R:81
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 57. Error: Create a filter by [[<- (@test-filters.R#101)  ───────────────────
  could not find function "make_label"
  1: expect_POST(filters(ds)[["A filter"]] <- ds$gender == "Male", "https://app.crunch.io/api/datasets/1/filters/", 
         "{\"name\":\"A filter\",\"expression\":", "{\"function\":\"==\",\"args\":[", 
         "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "{\"value\":1}]}}") at testthat/test-filters.R:101
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 58. Error: Alter a filter by [[<- (@test-filters.R#110)  ────────────────────
  could not find function "make_label"
  1: expect_PATCH(filters(ds)[["Occasional Political Interest"]] <- ds$gender == "Female", 
         "https://app.crunch.io/api/datasets/1/filters/filter1/", "{\"expression\":", 
         "{\"function\":\"==\",\"args\":[", "{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"},", 
         "{\"value\":2}]}}") at testthat/test-filters.R:110
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 59. Error: mv/mkdir make a PUT (@test-folders.R#102)  ───────────────────────
  could not find function "make_label"
  1: expect_PUT(mv(ds, "gender", "Demographics/Personal"), "https://app.crunch.io/api/datasets/1/variables/hierarchical/") at testthat/test-folders.R:102
  2: expect_mock_request(object, "PUT ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 60. Error: mergeFork requests (@test-fork.R#8)  ─────────────────────────────
  could not find function "make_label"
  1: expect_POST(mergeFork(ds1, ds2), "https://app.crunch.io/api/datasets/1/actions/", 
         "{\"element\":\"shoji:entity\",", "\"body\":{\"dataset\":\"https://app.crunch.io/api/datasets/3/\",", 
         "\"autorollback\":true,\"force\":false}}") at testthat/test-fork.R:8
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 61. Error: can remove a geo association (@test-geo.R#23)  ───────────────────
  could not find function "make_label"
  1: expect_PATCH(geo(ds$location) <- NULL, "https://app.crunch.io/api/datasets/1/variables/location/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"view\":{\"geodata\":[]}}}") at testthat/test-geo.R:23
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 62. Error: we can update individual fiels of the geography (@test-geo.R#29)  
  could not find function "make_label"
  1: expect_PATCH(geo(ds$location)$feature_key <- "properties.location2", "https://app.crunch.io/api/datasets/1/variables/location/", 
         "{\"view\":{\"geodata\":[{\"geodatum\":\"https://app.crunch.io/api/geodata/8684c65ff11c4cc3b945c0cf1c9b2a7f/\"", 
         ",\"feature_key\":\"properties.location2\",\"match_field\":\"name\"}]}}") at testthat/test-geo.R:29
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 63. Error: deleteDataset by name (@test-get-datasets.R#56)  ─────────────────
  could not find function "make_label"
  1: expect_DELETE(deleteDataset("test ds"), self(ds)) at testthat/test-get-datasets.R:56
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 64. Error: deleteDataset by index (@test-get-datasets.R#59)  ────────────────
  could not find function "make_label"
  1: expect_DELETE(deleteDataset(4), self(ds)) at testthat/test-get-datasets.R:59
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 65. Error: deleteDataset on Dataset object (@test-get-datasets.R#62)  ───────
  could not find function "make_label"
  1: expect_DELETE(deleteDataset(ds), self(ds)) at testthat/test-get-datasets.R:62
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 66. Error: Can delete a hidden variable (@test-hide-variables.R#27)  ────────
  could not find function "make_label"
  1: with_consent({
         expect_warning(expect_DELETE(delete(ds$birthyr), "https://app.crunch.io/api/datasets/3/variables/birthyr/"), 
             "Variable birthyr is hidden")
     }) at testthat/test-hide-variables.R:27
  2: with(consent(), eval.parent(expr))
  3: with.contextManager(consent(), eval.parent(expr))
  4: eval(substitute(expr), envir = parent.frame())
  5: eval(substitute(expr), envir = parent.frame())
  6: eval.parent(expr)
  7: eval(expr, p)
  8: expect_warning(expect_DELETE(delete(ds$birthyr), "https://app.crunch.io/api/datasets/3/variables/birthyr/"), 
         "Variable birthyr is hidden") at testthat/test-hide-variables.R:28
  9: quasi_capture(enquo(object), capture_warnings, label = label)
  10: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  11: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  12: eval_bare(get_expr(quo), get_env(quo))
  13: expect_DELETE(delete(ds$birthyr), "https://app.crunch.io/api/datasets/3/variables/birthyr/")
  14: expect_mock_request(object, "DELETE ", url)
  15: request_happened(object, expected, fixed = TRUE)
  
  ── 67. Error: hideVariables with various input types makes the right request (@t
  could not find function "make_label"
  1: expect_PATCH(ds <- hideVariables(ds, "gender"), "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/gender/\":{\"discarded\":true}}") at testthat/test-hide-variables.R:38
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 68. Error: hiddenVariables<- request (@test-hide-variables.R#58)  ───────────
  could not find function "make_label"
  1: expect_PATCH(hiddenVariables(ds) <- "gender", "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/gender/\":{\"discarded\":true}}") at testthat/test-hide-variables.R:58
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 69. Error: unhideVariables with various input types makes the right request (
  could not find function "make_label"
  1: expect_PATCH(ds <- unhideVariables(ds, "birthyr"), "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/birthyr/\":{\"discarded\":false}}") at testthat/test-hide-variables.R:67
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 70. Error: hide method on variable makes right request (@test-hide-variables.
  could not find function "make_label"
  1: expect_PATCH(hide(ds$gender), "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/gender/\":{\"discarded\":true}}") at testthat/test-hide-variables.R:80
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 71. Error: unhide method on variable makes right request (@test-hide-variable
  could not find function "make_label"
  1: expect_warning(expect_PATCH(unhide(ds$birthyr), "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/birthyr/\":{\"discarded\":false}}"), 
         "Variable birthyr is hidden") at testthat/test-hide-variables.R:89
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_PATCH(unhide(ds$birthyr), "https://app.crunch.io/api/datasets/3/variables/", 
         "{\"https://app.crunch.io/api/datasets/3/variables/birthyr/\":{\"discarded\":false}}")
  7: expect_mock_request(object, "PATCH ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 72. Error: interactVariables (@test-interact.R#31)  ─────────────────────────
  could not find function "make_label"
  1: expect_POST(ds$interaction <- interaction_var, "https://app.crunch.io/api/datasets/1/variables/") at testthat/test-interact.R:31
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 73. Error: Correct payload without filtering (@test-join.R#30)  ─────────────
  could not find function "make_label"
  1: expect_PATCH(join(ds1, ds2, by.x = ds1$birthyr, ds2$birthyr), "https://app.crunch.io/api/datasets/1/joins/", 
         testPayload) at testthat/test-join.R:30
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 74. Error: Can reference variables by alias (@test-join.R#36)  ──────────────
  could not find function "make_label"
  1: expect_PATCH(join(ds1, ds2, by.x = "birthyr", by.y = "birthyr"), "https://app.crunch.io/api/datasets/1/joins/", 
         testPayload) at testthat/test-join.R:36
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 75. Error: Correct payload without filtering (@test-merge-datasets.R#27)  ───
  could not find function "make_label"
  1: expect_warning(expect_POST(merge(ds1, ds2, by.x = ds1$birthyr, ds2$birthyr), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayload), "Variable birthyr is hidden") at testthat/test-merge-datasets.R:27
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(merge(ds1, ds2, by.x = ds1$birthyr, ds2$birthyr), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayload)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 76. Error: Can reference variables by alias (@test-merge-datasets.R#35)  ────
  could not find function "make_label"
  1: expect_warning(expect_POST(merge(ds1, ds2, by.x = "birthyr", by.y = "birthyr"), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayload), "Variable birthyr is hidden") at testthat/test-merge-datasets.R:35
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(merge(ds1, ds2, by.x = "birthyr", by.y = "birthyr"), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayload)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 77. Error: joinDatasets with default copy=TRUE redirects here (@test-merge-da
  could not find function "make_label"
  1: expect_warning(expect_POST(joinDatasets(ds1, ds2, by.x = ds1$birthyr, ds2$birthyr), 
         "https://app.crunch.io/api/datasets/1/variables/", testPayload), "Variable birthyr is hidden") at testthat/test-merge-datasets.R:47
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(joinDatasets(ds1, ds2, by.x = ds1$birthyr, ds2$birthyr), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayload)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 78. Error: merge a subset of variables (@test-merge-datasets.R#55)  ─────────
  could not find function "make_label"
  1: expect_warning(expect_POST(merge(ds1, ds2[c("gender", "birthyr")], by = "birthyr"), 
         "https://app.crunch.io/api/datasets/1/variables/", testSubsetPayload), "Variable birthyr is hidden") at testthat/test-merge-datasets.R:55
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(merge(ds1, ds2[c("gender", "birthyr")], by = "birthyr"), "https://app.crunch.io/api/datasets/1/variables/", 
         testSubsetPayload)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 79. Error: filter rows in merge (@test-merge-datasets.R#63)  ────────────────
  could not find function "make_label"
  1: expect_warning(expect_POST(merge(ds1, ds2[ds2$gender == "Male", ], by = "birthyr"), 
         "https://app.crunch.io/api/datasets/1/variables/", testPayloadWithFilter), "Variable birthyr is hidden") at testthat/test-merge-datasets.R:63
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(merge(ds1, ds2[ds2$gender == "Male", ], by = "birthyr"), "https://app.crunch.io/api/datasets/1/variables/", 
         testPayloadWithFilter)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 80. Error: filter rows and variables in merge (@test-merge-datasets.R#71)  ──
  could not find function "make_label"
  1: expect_warning(expect_POST(merge(ds1, ds2[ds2$gender == "Male", c("gender", "birthyr")], 
         by = "birthyr"), "https://app.crunch.io/api/datasets/1/variables/", testSubsetPayloadWithFilter), 
         "Variable birthyr is hidden") at testthat/test-merge-datasets.R:71
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: expect_POST(merge(ds1, ds2[ds2$gender == "Male", c("gender", "birthyr")], by = "birthyr"), 
         "https://app.crunch.io/api/datasets/1/variables/", testSubsetPayloadWithFilter)
  7: expect_mock_request(object, "POST ", url, " ", ...)
  8: request_happened(object, expected, fixed = TRUE)
  
  ── 81. Error: Multitable catalog names (@test-multitables.R#30)  ───────────────
  could not find function "make_label"
  1: expect_PATCH(names(mults)[2] <- "New name", "https://app.crunch.io/api/datasets/1/multitables/4de322/", 
         "{\"name\":\"New name\"}") at testthat/test-multitables.R:30
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 82. Error: Multitable catalog is.public (@test-multitables.R#39)  ───────────
  could not find function "make_label"
  1: expect_PATCH(is.public(mults)[2] <- FALSE, "https://app.crunch.io/api/datasets/1/multitables/4de322/", 
         "{\"is_public\":false}") at testthat/test-multitables.R:39
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 83. Error: Multitable delete (@test-multitables.R#54)  ──────────────────────
  could not find function "make_label"
  1: expect_DELETE(delete(mults[["Shared multitable"]]), "https://app.crunch.io/api/datasets/1/multitables/4de322/") at testthat/test-multitables.R:54
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 84. Error: Multitable object methods (@test-multitables.R#69)  ──────────────
  could not find function "make_label"
  1: expect_PATCH(name(m) <- "Another name", "https://app.crunch.io/api/datasets/1/multitables/ed30c4/", 
         "{\"name\":\"Another name\"}") at testthat/test-multitables.R:69
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 85. Error: newMultitable (@test-multitables.R#79)  ──────────────────────────
  could not find function "make_label"
  1: expect_POST(newMultitable(~gender + mymrset, data = ds, name = "New multitable"), 
         "https://app.crunch.io/api/datasets/1/multitables/", "{\"element\":\"shoji:entity\",\"body\":{", 
         "\"template\":[{\"query\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"}]},", 
         "{\"query\":[{\"function\":\"selected_array\",", "\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/mymrset/\"}]},", 
         "{\"each\":\"https://app.crunch.io/api/datasets/1/variables/mymrset/\"}]}]", 
         ",\"name\":\"New multitable\"}}") at testthat/test-multitables.R:79
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 86. Error: newMultitable provides a default name based on the formula (@test-
  could not find function "make_label"
  1: expect_POST(newMultitable(~gender + mymrset, data = ds), "https://app.crunch.io/api/datasets/1/multitables/", 
         "{\"element\":\"shoji:entity\",\"body\":{", "\"template\":[{\"query\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"}]},", 
         "{\"query\":[{\"function\":\"selected_array\",", "\"args\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/mymrset/\"}]},", 
         "{\"each\":\"https://app.crunch.io/api/datasets/1/variables/mymrset/\"}]}]", 
         ",\"name\":\"gender + mymrset\"}}") at testthat/test-multitables.R:96
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 87. Error: importMultitable (@test-multitables.R#117)  ──────────────────────
  could not find function "make_label"
  1: expect_POST(importMultitable(ds, mtable, name = "copied_multitable"), "https://app.crunch.io/api/datasets/1/multitables/", 
         "{\"element\":\"shoji:entity\",\"body\":{", "\"multitable\":\"https://app.crunch.io/api/datasets/1/multitables/4de322/\",", 
         "\"name\":\"copied_multitable\"}}") at testthat/test-multitables.R:117
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 88. Error: multitable list methods (@test-multitables.R#138)  ───────────────
  could not find function "make_label"
  1: expect_POST(multitables(ds)[["mt again"]] <- ~gender + birthyr, "https://app.crunch.io/api/datasets/1/multitables/", 
         "{\"element\":\"shoji:entity\",\"body\":", "{\"template\":[{\"query\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/gender/\"}]},", 
         "{\"query\":[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/birthyr/\"}]}]", 
         ",\"name\":\"mt again\"}}") at testthat/test-multitables.R:138
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 89. Error: tabBook sets the right request header (@test-multitables.R#174)  ─
  could not find function "make_label"
  1: expect_header(expect_POST(tabBook(m, data = ds, format = "xlsx"), "https://app.crunch.io/api/datasets/1/multitables/ed30c4/tabbook/"), 
         "Accept: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") at testthat/test-multitables.R:174
  2: with_trace("request_perform", tracer = tracer, at = 1, where = add_headers, expr = {
         expect_warning(...)
     })
  3: eval.parent(expr)
  4: eval(expr, p)
  5: expect_warning(...)
  6: quasi_capture(enquo(object), capture_warnings, label = label)
  7: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  8: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  9: eval_bare(get_expr(quo), get_env(quo))
  10: expect_POST(tabBook(m, data = ds, format = "xlsx"), "https://app.crunch.io/api/datasets/1/multitables/ed30c4/tabbook/")
  11: expect_mock_request(object, "POST ", url, " ", ...)
  12: request_happened(object, expected, fixed = TRUE)
  
  ── 90. Error: Basic exercise of turning data.frame to Crunch payload (@test-new-
  could not find function "make_label"
  1: expect_POST(newDataset(data.frame(a = 1), name = "Testing"), "https://app.crunch.io/api/datasets/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"Testing\",", "\"table\":{\"element\":\"crunch:table\",", 
         "\"metadata\":{\"a\":{\"type\":\"numeric\",\"name\":\"a\",\"alias\":\"a\"}},", 
         "\"order\":[\"a\"]}}}") at testthat/test-new-dataset.R:29
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 91. Error: Turning data.frame to Crunch payload without a name (@test-new-dat
  could not find function "make_label"
  1: expect_POST(newDataset(data.frame(a = 1)), "https://app.crunch.io/api/datasets/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"data.frame(a = 1)\",", "\"table\":{\"element\":\"crunch:table\",", 
         "\"metadata\":{\"a\":{\"type\":\"numeric\",\"name\":\"a\",\"alias\":\"a\"}},", 
         "\"order\":[\"a\"]}}}") at testthat/test-new-dataset.R:38
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 92. Error: Turning data.frame to Crunch payload with a long name (@test-new-d
  could not find function "make_label"
  1: expect_POST(newDataset(data.frame(a = 1, really_really_long_name = 2)), "https://app.crunch.io/api/datasets/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"data.frame(a = 1, really_really_long_nam\",", 
         "\"table\":{\"element\":\"crunch:table\",", "\"metadata\":{\"a\":{\"type\":\"numeric\",\"name\":\"a\",\"alias\":\"a\"},\"really_really_long_name\":{\"type\":\"numeric\",\"name\":\"really_really_long_name\",\"alias\":\"really_really_long_name\"}},", 
         "\"order\":[\"a\",\"really_really_long_name\"]}}}") at testthat/test-new-dataset.R:47
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 93. Error: createWithMetadataAndFile when metadata is file too (@test-new-dat
  could not find function "make_label"
  1: expect_POST(newDatasetFromFixture("apidocs"), "https://app.crunch.io/api/datasets/", 
         toJSON(fromJSON(file.path("dataset-fixtures", "apidocs.json"), simplifyVector = FALSE))) at testthat/test-new-dataset.R:56
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 94. Error: uploadData writes out a gzipped file (@test-new-dataset.R#62)  ───
  could not find function "make_label"
  1: with_DELETE(NULL, {
         expect_POST(uploadData(ds, data.frame(a = 1)), "https://app.crunch.io/api/sources/", 
             "list(uploaded_file")
     }) at testthat/test-new-dataset.R:62
  2: with_mock(`crunch::crDELETE` = function(...) resp, eval.parent(expr))
  3: eval(code[[length(code)]], parent.frame())
  4: eval(code[[length(code)]], parent.frame())
  5: eval.parent(expr)
  6: eval(expr, p)
  7: expect_POST(uploadData(ds, data.frame(a = 1)), "https://app.crunch.io/api/sources/", 
         "list(uploaded_file") at testthat/test-new-dataset.R:64
  8: expect_mock_request(object, "POST ", url, " ", ...)
  9: request_happened(object, expected, fixed = TRUE)
  
  ── 95. Error: createDataset with named args (@test-new-dataset.R#71)  ──────────
  could not find function "make_label"
  1: expect_POST(createDataset(name = "Foo", description = "Bar."), "https://app.crunch.io/api/datasets/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"Foo\",", "\"description\":\"Bar.\"}}") at testthat/test-new-dataset.R:71
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 96. Error: newDataset calls newDatasetFromFile if given a string (@test-new-d
  could not find function "make_label"
  1: expect_POST(newDataset("helper.R"), "https://app.crunch.io/api/datasets/", "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"helper.R\"}}") at testthat/test-new-dataset.R:81
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 97. Error: newDataset(FromFile) cleans up the dataset entity if the file is i
  could not find function "make_label"
  1: with_POST("https://app.crunch.io/api/datasets/1/", {
         expect_DELETE(newDataset("NOTAFILE.exe"), "https://app.crunch.io/api/datasets/1/")
         with_DELETE(NULL, {
             expect_error(newDataset("NOTAFILE.exe"), "File not found")
         })
     }) at testthat/test-new-dataset.R:86
  2: with_mock(`crunch::crPOST` = function(...) resp, eval.parent(expr))
  3: eval(code[[length(code)]], parent.frame())
  4: eval(code[[length(code)]], parent.frame())
  5: eval.parent(expr)
  6: eval(expr, p)
  7: expect_DELETE(newDataset("NOTAFILE.exe"), "https://app.crunch.io/api/datasets/1/") at testthat/test-new-dataset.R:87
  8: expect_mock_request(object, "DELETE ", url)
  9: request_happened(object, expected, fixed = TRUE)
  
  ── 98. Error: newDataset(FromFile) can take an s3 URL (@test-new-dataset.R#96)  
  could not find function "make_label"
  1: with_DELETE(NULL, {
         expect_POST(newDataset("s3://httpbin.org/get"), "https://app.crunch.io/api/datasets/1/batches/", 
             "{\"element\":\"shoji:entity\",", "\"body\":{\"url\":\"s3://httpbin.org/get\"}}")
     }) at testthat/test-new-dataset.R:96
  2: with_mock(`crunch::crDELETE` = function(...) resp, eval.parent(expr))
  3: eval(code[[length(code)]], parent.frame())
  4: eval(code[[length(code)]], parent.frame())
  5: eval.parent(expr)
  6: eval(expr, p)
  7: expect_POST(newDataset("s3://httpbin.org/get"), "https://app.crunch.io/api/datasets/1/batches/", 
         "{\"element\":\"shoji:entity\",", "\"body\":{\"url\":\"s3://httpbin.org/get\"}}") at testthat/test-new-dataset.R:97
  8: expect_mock_request(object, "POST ", url, " ", ...)
  9: request_happened(object, expected, fixed = TRUE)
  
  ── 99. Error: newDataset(FromFile) can take an http(s) URL (@test-new-dataset.R#
  could not find function "make_label"
  1: with_DELETE(NULL, {
         expect_POST(newDataset("https://httpbin.org/get"), "https://app.crunch.io/api/sources/", 
             "{\"element\":\"shoji:entity\",", "\"body\":{\"location\":\"https://httpbin.org/get\"}}")
     }) at testthat/test-new-dataset.R:104
  2: with_mock(`crunch::crDELETE` = function(...) resp, eval.parent(expr))
  3: eval(code[[length(code)]], parent.frame())
  4: eval(code[[length(code)]], parent.frame())
  5: eval.parent(expr)
  6: eval(expr, p)
  7: expect_POST(newDataset("https://httpbin.org/get"), "https://app.crunch.io/api/sources/", 
         "{\"element\":\"shoji:entity\",", "\"body\":{\"location\":\"https://httpbin.org/get\"}}") at testthat/test-new-dataset.R:105
  8: expect_mock_request(object, "POST ", url, " ", ...)
  9: request_happened(object, expected, fixed = TRUE)
  
  ── 100. Error: newDatasetByColumn (@test-new-dataset.R#113)  ───────────────────
  could not find function "make_label"
  1: expect_POST(newDatasetByColumn(data.frame(a = 1), name = "Bam!"), "https://app.crunch.io/api/datasets/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"name\":\"Bam!\"}}") at testthat/test-new-dataset.R:113
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 101. Error: Simple project creation by assignment (@test-projects.R#24)  ────
  could not find function "make_label"
  1: expect_POST(projects[["A new project"]] <- list(), "https://app.crunch.io/api/projects/", 
         "{\"name\":\"A new project\"}") at testthat/test-projects.R:24
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 102. Error: Project creation with newProject (@test-projects.R#33)  ─────────
  could not find function "make_label"
  1: expect_POST(newProject("A new project"), "https://app.crunch.io/api/projects/", "{\"name\":\"A new project\"}") at testthat/test-projects.R:33
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 103. Error: Project editing (@test-projects.R#49)  ──────────────────────────
  could not find function "make_label"
  1: expect_PATCH(names(projects)[2] <- "New name", "https://app.crunch.io/api/projects/", 
         "{\"https://app.crunch.io/api/projects/project2/\":{\"name\":\"New name\"}}") at testthat/test-projects.R:49
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 104. Error: Project deletion (@test-projects.R#60)  ─────────────────────────
  could not find function "make_label"
  1: with(consent(), {
         expect_DELETE(delete(projects[[1]]), "https://app.crunch.io/api/projects/project1/")
     }) at testthat/test-projects.R:60
  2: with.contextManager(consent(), {
         expect_DELETE(delete(projects[[1]]), "https://app.crunch.io/api/projects/project1/")
     })
  3: eval(substitute(expr), envir = parent.frame())
  4: eval(substitute(expr), envir = parent.frame())
  5: expect_DELETE(delete(projects[[1]]), "https://app.crunch.io/api/projects/project1/") at testthat/test-projects.R:61
  6: expect_mock_request(object, "DELETE ", url)
  7: request_happened(object, expected, fixed = TRUE)
  
  ── 105. Error: Add members by members<- (@test-projects.R#81)  ─────────────────
  could not find function "make_label"
  1: expect_PATCH(members(aproject) <- c("new.user@crunch.io", "foo@example.co"), "https://app.crunch.io/api/projects/project1/members/", 
         "{\"new.user@crunch.io\":{},\"foo@example.co\":{}}") at testthat/test-projects.R:81
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 106. Error: Add members doesn't re-add if already a member (@test-projects.R#
  could not find function "make_label"
  1: expect_PATCH(members(aproject) <- c("new.user@crunch.io", "roger.user@example.com"), 
         "https://app.crunch.io/api/projects/project1/members/", "{\"new.user@crunch.io\":{}}") at testthat/test-projects.R:87
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 107. Error: Remove members by <- NULL (@test-projects.R#93)  ────────────────
  could not find function "make_label"
  1: expect_PATCH(members(aproject)[["roger.user@example.com"]] <- NULL, "https://app.crunch.io/api/projects/project1/members/", 
         "{\"roger.user@example.com\":null}") at testthat/test-projects.R:93
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 108. Error: is.editor<- on member catalog (@test-projects.R#103)  ───────────
  could not find function "make_label"
  1: expect_PATCH(is.editor(m) <- c(TRUE, TRUE), "https://app.crunch.io/api/projects/project1/members/", 
         "{\"https://app.crunch.io/api/users/user2/\":{\"permissions\":{\"edit\":true}}}") at testthat/test-projects.R:103
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 109. Error: Add datasets to project by <- a dataset (which transfers ownershi
  could not find function "make_label"
  1: expect_PATCH(datasets(aproject) <- ds, "https://app.crunch.io/api/datasets/1/", "{\"owner\":\"https://app.crunch.io/api/projects/project1/\"}") at testthat/test-projects.R:153
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 110. Error: Organize datasets (@test-projects.R#161)  ───────────────────────
  could not find function "make_label"
  1: expect_PUT(ordering(datasets(aproject)) <- DatasetOrder(DatasetGroup("new group", 
         datasets(aproject))), "https://app.crunch.io/api/projects/project1/datasets/order/", 
         "{\"graph\":[{\"new group\":[\"https://app.crunch.io/api/datasets/3/\"]}]}") at testthat/test-projects.R:161
  2: expect_mock_request(object, "PUT ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 111. Error: Share payload shape (@test-share.R#35)  ─────────────────────────
  could not find function "make_label"
  1: expect_PATCH(share(ds, "lauren.ipsum@crunch.io", edit = TRUE, notify = FALSE), "https://app.crunch.io/api/datasets/1/permissions/", 
         "{\"lauren.ipsum@crunch.io\":{\"dataset_permissions\":", "{\"edit\":true,\"view\":true}},\"send_notification\":false}") at testthat/test-share.R:35
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 112. Error: Sharing works even if the PermissionCatalog is empty (as with a p
  could not find function "make_label"
  1: expect_PATCH(share(ds, "lauren.ipsum@crunch.io", notify = FALSE), "https://app.crunch.io/api/datasets/1/permissions/", 
         "{\"lauren.ipsum@crunch.io\":{\"dataset_permissions\":", "{\"edit\":false,\"view\":true}},\"send_notification\":false}")
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 113. Error: subvariable name/alias setting (@test-subvariables.R#24)  ───────
  could not find function "make_label"
  1: expect_PATCH(names(subvariables(mr))[1:2] <- c("Uno", "Due"), "https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/", 
         "{\"https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/subvar2/\":{\"name\":\"Uno\"},", 
         "\"https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/subvar1/\":{\"name\":\"Due\"}}") at testthat/test-subvariables.R:24
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 114. Error: subvariable setter validation (@test-subvariables.R#52)  ────────
  could not find function "make_label"
  1: expect_PATCH(subvariables(mr) <- subvariables(mr)[c(3, 1, 2)]) at testthat/test-subvariables.R:52
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 115. Error: Assinging in with no changes does not make PATCH request (@test-s
  could not find function "make_label"
  1: expect_no_request(subvariables(mr) <- subvariables(mr)) at testthat/test-subvariables.R:58
  2: request_happened(object, NA)
  
  ── 116. Error: Validation when setting on a subvariable (@test-subvariables.R#80
  could not find function "make_label"
  1: expect_PATCH(name(subvariables(mr)$Second) <- "Due", "https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/", 
         "{\"https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/subvar1/\":{\"name\":\"Due\"}}") at testthat/test-subvariables.R:80
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 117. Error: Team deletion (@test-teams.R#31)  ───────────────────────────────
  could not find function "make_label"
  1: expect_DELETE(with_consent(delete(ateam)), self(ateam)) at testthat/test-teams.R:31
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 118. Error: If an array gets NA assigned and it doesn't have No Data, we add 
  could not find function "make_label"
  1: expect_PATCH(ds2$mymrset[3] <- NA, "https://app.crunch.io/api/datasets/2/variables/mymrset/", 
         "{\"categories\":") at testthat/test-update-with-missing.R:8
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 119. Error: If an subvariables gets NA assigned and it doesn't have No Data, 
  could not find function "make_label"
  1: expect_PATCH(ds2$mymrset[[1]][3] <- NA, "https://app.crunch.io/api/datasets/2/variables/mymrset/", 
         "{\"categories\":") at testthat/test-update-with-missing.R:13
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 120. Error: is.na<- sends an expression (@test-update-with-missing.R#18)  ───
  could not find function "make_label"
  1: expect_POST(is.na(ds$birthyr) <- ds$birthyr > 2016, "https://app.crunch.io/api/datasets/1/table/", 
         "{\"command\":\"update\",\"variables\":", "{\"https://app.crunch.io/api/datasets/1/variables/birthyr/\":{\"value\":{\"?\":-1},", 
         "\"type\":{\"class\":\"numeric\"}}},\"filter\":{\"function\":\">\",\"args\":", 
         "[{\"variable\":\"https://app.crunch.io/api/datasets/1/variables/birthyr/\"},", 
         "{\"value\":2016}]}}") at testthat/test-update-with-missing.R:18
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 121. Error: Updating values makes a POST request to the table endpoint (@test
  could not find function "make_label"
  1: expect_POST(ds$gender <- "Male", "https://app.crunch.io/api/datasets/1/table/") at testthat/test-update.R:8
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 122. Error: Reset password (@test-user.R#32)  ───────────────────────────────
  could not find function "make_label"
  1: expect_POST(resetPassword("me@example.com"), "https://app.crunch.io/api/public/password_reset/", 
         "{\"email\":\"me@example.com\",", "\"url_base\":\"https://app.crunch.io/password/change/${token}/\"}") at testthat/test-user.R:32
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 123. Error: invite (not currently exported) (@test-user.R#39)  ──────────────
  could not find function "make_label"
  1: expect_POST(invite("me@example.com", name = "Me"), "https://app.crunch.io/api/accounts/account1/users/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"email\":\"me@example.com\",", "\"send_invite\":true,\"id_method\":\"pwhash\",", 
         "\"account_permissions\":{\"alter_users\":false,", "\"create_datasets\":false},\"first_name\":\"Me\",", 
         "\"url_base\":\"/password/change/${token}/\"}}") at testthat/test-user.R:39
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 124. Error: expropriateUser (@test-user.R#52)  ──────────────────────────────
  could not find function "make_label"
  1: expect_POST(with_consent({
         expropriateUser("fake.user@example.com", "william.user@example.io")
     }), "https://app.crunch.io/api/users/user1/expropriate/", "{\"element\":\"shoji:entity\",\"body\":{\"owner\":\"william.user@example.io\"}}") at testthat/test-user.R:52
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 125. Error: attribute setters (@test-variable-catalog.R#85)  ────────────────
  could not find function "make_label"
  1: expect_PATCH(names(varcat)[1:4] <- c("Year of birth", "Gender", "Loc", "Start time"), 
         "https://app.crunch.io/api/datasets/1/variables/", "{\"https://app.crunch.io/api/datasets/1/variables/birthyr/\":{\"name\":\"Year of birth\"},", 
         "\"https://app.crunch.io/api/datasets/1/variables/location/\":{\"name\":\"Loc\"},", 
         "\"https://app.crunch.io/api/datasets/1/variables/mymrset/\":{\"name\":\"Start time\"}}") at testthat/test-variable-catalog.R:85
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 126. Error: If consent given, all of these methods do DELETE (@test-variable-
  could not find function "make_label"
  1: expect_DELETE(delete(ds$gender), "https://app.crunch.io/api/datasets/1/variables/gender/") at testthat/test-variable-delete.R:29
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 127. Error: deleteSubvariable deletes the subvariable (@test-variable-delete.
  could not find function "make_label"
  1: expect_DELETE(deleteSubvariable(ds$mymrset, "subvar1"), "https://app.crunch.io/api/datasets/1/variables/mymrset/subvariables/subvar1/") at testthat/test-variable-delete.R:44
  2: expect_mock_request(object, "DELETE ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 128. Error: table makes a cube request (@test-variable-summary.R#24)  ───────
  could not find function "make_label"
  1: expect_GET(table(gen), "https://app.crunch.io/api/datasets/1/cube/") at testthat/test-variable-summary.R:24
  2: expect_mock_request(object, "GET ", url)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 129. Error: Changing numeric type by <- makes requests (@test-variable-type.R
  could not find function "make_label"
  1: expect_POST(type(ds$birthyr) <- "categorical", "https://app.crunch.io/api/datasets/1/variables/birthyr/cast/", 
         "{\"cast_as\":\"categorical\"}") at testthat/test-variable-type.R:12
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 130. Error: Setting the same type is a no-op (@test-variable-type.R#20)  ────
  could not find function "make_label"
  1: expect_no_request(type(ds$birthyr) <- "numeric") at testthat/test-variable-type.R:20
  2: request_happened(object, NA)
  
  ── 131. Error: Variable setter requests (@test-variables.R#60)  ────────────────
  could not find function "make_label"
  1: expect_PATCH(name(ds$gender) <- "Sex", "https://app.crunch.io/api/datasets/1/variables/", 
         "{\"https://app.crunch.io/api/datasets/1/variables/gender/\":{\"name\":\"Sex\"}}") at testthat/test-variables.R:60
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 132. Error: Variable setters don't hit server if data not changed (@test-vari
  could not find function "make_label"
  1: expect_no_request(name(ds$gender) <- "Gender") at testthat/test-variables.R:69
  2: request_happened(object, NA)
  
  ── 133. Error: can modify digits on var object (@test-variables.R#97)  ─────────
  could not find function "make_label"
  1: expect_PATCH(digits(ds$birthyr) <- 0, "https://app.crunch.io/api/datasets/1/variables/birthyr/", 
         "{\"element\":\"shoji:entity\",\"body\":{\"format\":{\"data\":", "{\"digits\":0}}}}") at testthat/test-variables.R:97
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 134. Error: saveVersion makes the right request (@test-versioning.R#28)  ────
  could not find function "make_label"
  1: expect_POST(saveVersion(ds, "Today"), "https://app.crunch.io/api/datasets/1/savepoints/", 
         "{\"description\":\"Today\"}") at testthat/test-versioning.R:28
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 135. Error: saveVersion with no description supplied (@test-versioning.R#34) 
  could not find function "make_label"
  1: expect_POST(saveVersion(ds), "https://app.crunch.io/api/datasets/1/savepoints/", 
         "{\"description\":\"Version 3\"}") at testthat/test-versioning.R:34
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 136. Error: restoreVersion makes the right request (@test-versioning.R#49)  ─
  could not find function "make_label"
  1: expect_POST(restoreVersion(ds, "initial load"), "https://app.crunch.io/api/datasets/1/savepoints/v2/revert/") at testthat/test-versioning.R:49
  2: expect_mock_request(object, "POST ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 137. Error: Setting weights (@test-weighting.R#15)  ─────────────────────────
  could not find function "make_label"
  1: expect_PATCH(weight(oldds) <- oldds$birthyr, "https://app.crunch.io/api/datasets/1/preferences/", 
         "{\"weight\":\"https://app.crunch.io/api/datasets/1/variables/birthyr/\"}") at testthat/test-weighting.R:15
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 138. Error: is.weight assignment method (@test-weighting.R#23)  ─────────────
  could not find function "make_label"
  1: expect_PATCH(is.weight(oldds$birthyr) <- TRUE, "https://app.crunch.io/api/datasets/1/preferences/", 
         "{\"weight\":\"https://app.crunch.io/api/datasets/1/variables/birthyr/\"}") at testthat/test-weighting.R:23
  2: expect_mock_request(object, "PATCH ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 139. Error: No request is made to set a weight that already is your weight (@
  could not find function "make_label"
  1: expect_no_request(weight(oldds) <- NULL) at testthat/test-weighting.R:41
  2: request_happened(object, NA)
  
  ── 140. Error: weightVariables can be assigned (@test-weighting.R#62)  ─────────
  could not find function "make_label"
  1: expect_PUT(weightVariables(oldds) <- oldds$birthyr, "https://app.crunch.io/api/datasets/1/variables/weights/", 
         body) at testthat/test-weighting.R:62
  2: expect_mock_request(object, "PUT ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ── 141. Error: is.weightVariable assignment method (@test-weighting.R#74)  ─────
  could not find function "make_label"
  1: expect_PUT(is.weightVariable(oldds$birthyr) <- TRUE, "https://app.crunch.io/api/datasets/1/variables/weights/", 
         body) at testthat/test-weighting.R:74
  2: expect_mock_request(object, "PUT ", url, " ", ...)
  3: request_happened(object, expected, fixed = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1681 SKIPPED: 11 FAILED: 141
  1. Error: Adding a variable with all the same values gets sent more concisely (@test-add-variable.R#103) 
  2. Error: crunch.debug does not print if disabled (@test-api.R#12) 
  3. Error: crunch.debug logging if enabled (@test-api.R#19) 
  4. Error: If no filtering, 'where' and 'filter' are omitted (@test-append-subset.R#7) 
  5. Error: Append with filter (@test-append-subset.R#13) 
  6. Error: Append with variable selection (@test-append-subset.R#20) 
  7. Error: Append with variable selection and filter (@test-append-subset.R#27) 
  8. Error: append DELETEs the pk (@test-appending.R#22) 
  9. Error: appendDataset shows deprecation warnings (@test-appending.R#27) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted