Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SAS Exporter - 2 Issues: Exhibits infinite growth; Crashes R; #234
There are several data sets that I work with that I am unable to export using haven. The R session either crashes or the export never finishes (and the size of exported file continues to grow into the GB/TB realm even when the data is relatively small).
Unable to export to SPSS:
I am using:
Slightly cleaned up reprex below.
@evanmiller I still see both issues on latest haven.
library(haven) zip_path <- tempfile() download.file("https://www.dropbox.com/s/gxik3b08tmyh3bu/all_files.zip?dl=1", zip_path) rdata_path <- unzip(zip_path, exdir = basename(zip_path)) (load(rdata_path)) # sas_df1 - Gets stuck in loop haven::write_sas(sas_df1, tempfile()) # sas_df2 - Crashes R haven::write_sas(sas_df2, tempfile()) # sas_df3 - Gets stuck in loop haven::write_sas(sas_df3, tempfile())
I've cleaned up the issue title/comment thread to focus on key components of problem. Thanks for the correspondence so far
All issues appear to be related to rows not fitting into the default (and, currently, only possible) page size of 4096 bytes. Per #270 it looks like rows longer than 2048 bytes cause a hang, and rows longer than 4096 bytes cause a crash.