Closed wibeasley closed 4 years ago
The release of R 4.0 doesn't default to factors for string variables. This won't change much with the clients, but the tests break with the different data type
> str(expected) List of 4 $ title : chr "dataverse-client-r" $ generator : list() ..- attr(*, "uri")= chr "http://www.swordapp.org/" ..- attr(*, "version")= chr "2.0" $ dataverseHasBeenReleased: chr "false" $ datasets :'data.frame': 1 obs. of 2 variables: ..$ NA: Factor w/ 1 level "Bulls Roster 1996-1997": 1 ..$ NA: Factor w/ 1 level "https://demo.dataverse.org/dvn/api/data-deposit/v1.1/swordv2/edit/study/doi:10.70122/FK2/FAN622": 1 - attr(*, "class")= chr "dataverse_dataset_list" > str(actual) List of 4 $ title : chr "dataverse-client-r" $ generator : list() ..- attr(*, "uri")= chr "http://www.swordapp.org/" ..- attr(*, "version")= chr "2.0" $ dataverseHasBeenReleased: chr "true" $ datasets :'data.frame': 1 obs. of 2 variables: ..$ title: chr "Bulls Roster 1996-1997" ..$ id : chr "https://demo.dataverse.org/dvn/api/data-deposit/v1.1/swordv2/edit/study/doi:10.70122/FK2/FAN622" - attr(*, "class")= chr "dataverse_dataset_list"
The release of R 4.0 doesn't default to factors for string variables. This won't change much with the clients, but the tests break with the different data type