Closed
Description
Thanks for working on my issue!!
Latest github haven still fails with row lengths approx 2048 bytes
library(haven)
have<-structure(list(A1="",A2="",A3="",A4="",X1=0,X2=0,X3=0,X4=0,X5=0,X6=0,
X7=0,X8=0,X9=0,X10=0,X11=0,X12=0,X13=0,X14=0,X15=0,X16=0,X17=0,X18=0,
X19=0,X20=0,X21=0,X22=0,X23=0,X24=0,X25=0,X26=0,X27=0,X28=0,X29=0,
X30=0,X31=0,X32=0,X33=0,X34=0,X35=0,X36=0,X37=0,X38=0,X39=0,X40=0,
X41=0,X42=0,X43=0,X44=0,X45=0,X46=0,X47=0,X48=0,X49=0,X50=0,X51=0,
X52=0,X53=0,X54=0,X55=0,X56=0,X57=0,X58=0,X59=0,X60=0,X61=0,X62=0,
X63=0,X64=0,X65=0,X66=0,X67=0,X68=0,X69=0,X70=0,X71=0,X72=0,X73=0,
X74=0,X75=0,X76=0,X77=0,X78=0,X79=0,X80=0,X81=0,X82=0,X83=0,X84=0,
X85=0,X86=0,X87=0,X88=0,X89=0,X90=0,X91=0,X92=0,X93=0,X94=0,X95=0,
X96=0,X97=0,X98=0,X99=0,X100=0,X101=0,X102=0,X103=0,X104=0,X105=0,
X106=0,X107=0,X108=0,X109=0,X110=0,X111=0,X112=0,X113=0,X114=0,X115=0,
X116=0,X117=0,X118=0,X119=0,X120=0,X121=0,X122=0,X123=0,X124=0,X125=0,
X126=0,X127=0,X128=0,X129=0,X130=0,X131=0,X132=0,X133=0,X134=0,X135=0,
X136=0,X137=0,X138=0,X139=0,X140=0,X141=0,X142=0,X143=0,X144=0,X145=0,
X146=0,X147=0,X148=0,X149=0,X150=0,X151=0,X152=0,X153=0,X154=0,X155=0,
X156=0,X157=0,X158=0,X159=0,X160=0,X161=0,X162=0,X163=0,X164=0,X165=0,
X166=0,X167=0,X168=0,X169=0,X170=0,X171=0,X172=0,X173=0,X174=0,X175=0,
X176=0,X177=0,X178=0,X179=0,X180=0,X181=0,X182=0,X183=0,X184=0,X185=0,
X186=0,X187=0,X188=0,X189=0,X190=0,X191=0,X192=0,X193=0,X194=0,X195=0,
X196=0,X197=0,X198=0,X199=0,X200=0,X201=0,X202=0,X203=0,X204=0,X205=0,
X206=0,X207=0,X208=0,X209=0,X210=0,X211=0,X212=0,X213=0,X214=0,X215=0,
X216=0,X217=0,X218=0,X219=0,X220=0,X221=0,X222=0,X223=0,X224=0,X225=0,
X226=0,X227=0,X228=0,X229=0,X230=0,X231=0,X232=0,X233=0,X234=0,X235=0,
X236=0,X237=0,X238=0,X239=0,X240=0,X241=0,X242=0,X243=0,X244=0,X245=0,
X246=0,X247=0,X248=0,X249=0,X250=0,X251=0,X252=0,X253=0,X254=0,X255=0,
X256=0,X257=0),row.names=c(NA,-1L),
class=c("tbl_df","tbl","data.frame"))
write_sas(have,"d:/sd1/hangs.sas7bdat")
I did get this 'note' when installing the latest haven
DfReader.cpp:471:5: warning: 'dir' may be used uninitialized in this function [-
Wmaybe-uninitialized]
file_.seekg(offset, dir);
^
Stderr output:
Error in write_sas_(data, normalizePath(path, mustWork = FALSE)) :
Writing failure: A row of data will not fit into the file format.
Calls: write_sas -> write_sas_ -> .Call
Execution halted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment