search for: sample_record

Displaying 1 result from an estimated 1 matches for "sample_record".

2004 Nov 29
1
data is getting corrupted
...#39;s the same columns that become corrupt. I wanted to make sure I'm using PROTECT correctly (the examples in the docs don't appear very thourough) and included a snippet below, SEXP r_write_sample_to_file( SEXP sample_in, SEXP filename ) { unsigned long return_code; struct SAMPLE_RECORD *sample_ptr; SEXP ans; PROTECT( filename = AS_CHARACTER( filename ) ); PROTECT(ans = allocVector(INTSXP, 1)); PROTECT( sample_in = AS_LIST( sample_in ) ); sample_ptr = build_sample_from_sexp( sample_in ); write_sample_to_file( &return_code, CHAR(STRING_ELT(filen...