R Under development (unstable) (2025-05-27 r88249 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(datapackage) > source("helpers.R") > > fn <- tempfile() > dir.create(fn, recursive = TRUE, showWarnings = FALSE) > > > # ============================================================================= > # Regression test for issue #23. A warning is generated when the yaml file > # contains integer values to large for regular integer > writeLines("name: test + resources: + - name: test + bytes: 9876543219", file.path(fn, "datapackage.yaml")) > res <- open_datapackage(fn) > expect_equal(res$resources[[1]]$bytes, 9876543219) > > writeLines("name: test + resources: + - name: test + bytes: -9876543219", file.path(fn, "datapackage.yaml")) > res <- open_datapackage(fn) > expect_equal(res$resources[[1]]$bytes, -9876543219) > > writeLines("name: test + resources: + - name: test + bytes: 9", file.path(fn, "datapackage.yaml")) > res <- open_datapackage(fn) > expect_equal(res$resources[[1]]$bytes, 9) > expect_equal(is.integer(res$resources[[1]]$bytes), TRUE) > > > > .ignore <- file.remove(list.files(fn, full.names = TRUE)) > .ignore <- file.remove(fn) Warning message: In file.remove(fn) : cannot remove file 'D:\temp\2025_05_28_08_20_16_20055\RtmpScSu5R\file26b6873284739', reason 'Permission denied' > > > proc.time() user system elapsed 0.26 0.10 0.34