Closed wibeasley closed 4 years ago
There's a subtle & trivial difference in the tests for get_dataverse(), which may be related to new versions of tibble or R 4.0.
get_dataverse()
> expect_equal(actual, expected) Error: `actual` not equal to `expected`. Component “datasets”: Attributes: < Names: 1 string mismatch > Component “datasets”: Attributes: < Length mismatch: comparison on first 2 components > Component “datasets”: Attributes: < Component 2: Modes: character, numeric > Component “datasets”: Attributes: < Component 2: target is character, current is numeric > > actual Dataverse name: Demo Dataverse Released? Yes data frame with 0 columns and 0 rows > expected Dataverse name: Demo Dataverse Released? Yes data frame with 0 columns and 0 rows
> str(expected) List of 4 $ title : chr "Demo Dataverse" $ generator : list() ..- attr(*, "uri")= chr "http://www.swordapp.org/" ..- attr(*, "version")= chr "2.0" $ dataverseHasBeenReleased: chr "true" $ datasets :'data.frame': 0 obs. of 0 variables - attr(*, "class")= chr "dataverse_dataset_list" > str(actual) List of 4 $ title : chr "Demo Dataverse" $ generator : list() ..- attr(*, "uri")= chr "http://www.swordapp.org/" ..- attr(*, "version")= chr "2.0" $ dataverseHasBeenReleased: chr "true" $ datasets :'data.frame': 0 obs. of 0 variables - attr(*, "class")= chr "dataverse_dataset_list"
> attributes(actual$datasets) $names # This is new character(0) $class [1] "data.frame" $row.names integer(0) > attributes(expected$datasets) $class [1] "data.frame" $row.names integer(0)
There's a subtle & trivial difference in the tests for
get_dataverse()
, which may be related to new versions of tibble or R 4.0.