atorus-research / datasetjson

Read and write CDISC Dataset JSON files
https://atorus-research.github.io/datasetjson/
Apache License 2.0
12 stars 2 forks source link

Bug: Read from JSON text failing #22

Closed mstackhouse closed 11 months ago

mstackhouse commented 11 months ago

What happened?

At some point it looks like the

Session Information

R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;  LAPACK version 3.10.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8    
 [5] LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C             
 [9] LC_ADDRESS=C           LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

time zone: Etc/UTC
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] datasetjson_0.1.0

loaded via a namespace (and not attached):
 [1] digest_0.6.33      fastmap_1.1.1      xfun_0.40          knitr_1.43         htmltools_0.5.6   
 [6] rmarkdown_2.24     cli_3.6.1          jsonvalidate_1.3.2 compiler_4.3.0     rstudioapi_0.15.0 
[11] tools_4.3.0        curl_5.0.2         evaluate_0.21      Rcpp_1.0.11        yaml_2.3.7        
[16] rlang_1.1.1        jsonlite_1.8.7     V8_4.3.3    

Reproducible Example

ds_json <- dataset_json(iris[1:5, ], "IG.IRIS", "IRIS", "Iris", iris_items)
js <- write_dataset_json(ds_json, pretty=TRUE)
dat <- read_dataset_json(js)