2008-07-16 Martin Maechler * src/sfm-read.c (sfm_read_long_var_names): added, from patch by Kurt Van Dijck * tests/spss_long.sav : added example for those by Ilse Laurijssen * tests/spss.R : add stringent tests; also testing the above. * DESCRIPTION (Version): 0.8-27 2008-06-18 Brian Ripley * src/SASxport.c, sas/minitab.c, sas/spss.c, sas/stataread.c: use sterrror(errno) to give reason for fopen failure. 2008-06-13 Brian Ripley * tests/sas.R: make optional, controlled by env variable. 2008-05-29 Brian Ripley * DESCRIPTION: Version is 0.8-26. * src/stataread.c: increase buffer size for version 10 files. The "label.table" list attribute now only contains as many elements as are present in the file, and is only present in the result if there are value labels in the file. Version numbers are now positive in returned attribute except for -7 (Stata 7SE). Reformatted for legibility. * R/read.dta.R: Reformatting for legibility, more support for Stata 10 files. Default format for write.dta is now 7 (not 6). write.dta converts class Date and not just POSIXt. Argument 'tz' of read.dta has been removed. Default for 'convert_underscore' is now FALSE. * man/read.dta.Rd: typo. More information on the attributes and how value labels are stored. Warnings on non-ASCII strings and large integer and numeric values. * tests/stata.Rout.save: update. [NB: will need updating for R 2.8.0] 2008-04-10 Brian Ripley * DESCRIPTION: Version is 0.8-25. * R/zzz.R: add .onUnload() to unload the DLL. 2008-04-04 Brian Ripley * tests/sas.R: precautionary use of binary mode -- needed to test under Windows in R < 2.7.0. 2008-03-27 Brian Ripley * DESCRIPTION: Version is 0.8-24. * src/SASxport.c: Patch from PD for case where record ends on card boundary (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/57864.html, https://stat.ethz.ch/pipermail/r-help/2008-February/155272.html) * tests/sas.R: regression test. * src/pfm-read.c: Use R's NA_REAL, Inf etc to return error and overflow conditions. Allow widths up to 65535 bytes. * src/sfm-read.c: Increase the limit on variable labels to 65536 bytes (https://stat.ethz.ch/pipermail/r-help/2008-March/156950.html). Skip records of type 7 subtype 16. * R/spss.R, src/sfm-read.c, src/sfmP.h, pfm-read.c, man/read.spss.Rd: add 'reencode' argument to read.spss. 2008-03-22 Brian Ripley * src/dbfopen.c: Use R_atof where available, for locale-independence. 2008-03-18 Brian Ripley * R/read.dta.R, src/stataread.c, man/read.dta.Rd, man/write.dta.Rd. Add support for Stata 10 (aka 114) format. 2008-03-09 Duncan Murdoch * R/read.epiinfo.R: bad regexp for blanks fixed. 2008-01-23 Brian Ripley * src/minitab.c: force text-mode opening (embedded uses of R can change the default on Windows). 2007-09-17 Brian Ripley * DESCRIPTION: Version is 0.8-23, use approved license abbreviation. * R/spss.R, man/read.spss.Rd, tests/spss.Rout.save: New argument trim_values=TRUE to read.spss, as some examples have padding in the value labels table and not in the data. One example is in PR#9896. 2007-08-12 Brian Ripley * man/read.spss.Rd: Clarifications, including 'Unrecognized record type 7, subtype 16' message. Add URL for PSPP project. 2007-08-02 Brian Ripley * src/pfm-read.c, src/sfm-read.c: include headers conditionally provided via R.h. 2007-07-27 Brian Ripley * DESCRIPTION: Version is 0.8-22 * R/*.R, src/*.[ch]: Add licence statement, or update source for GPL. * man/*.Rd: Copy over copyright claims from COPYRIGHTS to files mentioned. * COPYRIGHTS: update some dates. * LICENCE: Clarify that this package is licensed under GPL >= 2. 2007-06-06 Brian Ripley * src/sfm-read.c: remove Solaris compiler warning. 2007-06-01 Brian Ripley * src/foreign.h: remove duplicate definition of R_ExpandFileName. * src/R_systat.c, src/Rdfread.c, src/SASexport.c, src/spss.c, src/stataread.c: issues with CHAR being made (const char *). * DESCRIPTION: Version is 0.8-21, depends on R >=2.6.0 2007-05-29 Brian Ripley * R/dbf.R, R/read.dta.R: comments on meaning of nchar() - probably always ASCII * tests/stata.Rout.save: update for R 2.6.x 2007-05-20 Brian Ripley * R/Sread.R, R/octave.R, tests/stata.*: partial matching issues, use seq.int. 2007-04-06 Kurt Hornik * DESCRIPTION: Version is 0.8-20 2007-04-06 Brian Ripley * src/sfm-read.c: warning not error on unknown character representation code. * man/read.spss.Rd: document this. 2007-03-26 Kurt Hornik * NAMESPACE: * R/arff.R: * man/read.arff.Rd: * man/write.arff.Rd: Add functionality for reading and writing Weka ARFF files. 2007-03-23 Brian Ripley * DESCRIPTION: Version is 0.8-19, depends on 2.5.0. * NAMESPACE: remove conditionality * man/read.ssd.Rd: add comments about alternatives. 2007-03-06 Thomas Lumley * R/read.dta.R: avoid as.data.frame.list, for efficiency 2006-12-22 Brian Ripley * man/read.epiinfo.Rd: spelling 2006-11-30 Brian Ripley * NAMESPACE: Conditional on R>=2.5.0, import write.table * DESCRIPTION: Declare imports from utils, although only needed for R>=2.5.0 2006-11-29 Brian Ripley * DESCRIPTION: Version is 0.8-18. 2006-11-04 Brian Ripley * man/read.S.Rd: several corrections, mainly re data.restore. 2006-09-06 Brian Ripley * DESCRIPTION: needs to depends on stats, for na.omit. It does use methods::as Version is 0.8-17 2006-08-31 Thomas Lumley * R/read.dta, src/stataread.c: return a list from C, much faster for wide files * man/read.dta.Rd, man/write.dta.Rd: update for Stata 9. * src/sfm-read.c: changes from PR#9074 * src/writeForeignCode.R: fixes for PR#8936, PR#8927, PR#9006 2006-08-31 Brian Ripley * DESCRIPTION: there are no imports, from methods or elsewhere. Version is 0.8-16. * R/Sread.R, R/dbf.R, R/octave.R: use seq_{along,len}. * src/minitab.c: only use Rinternals.h. 2006-08-11 Brian Ripley * tests/stata.Rout.save: update for str() change. 2006-06-17 Thomas Lumley * R/writeForeignSAS.R, COPYRIGHTS: Add Stephen Weigand's modifications 2006-05-26 Brian Ripley * R/dbf.R, man/writedbf.Rd: new argument max_nchar to write.dbf() to allow longer character fields. 2006-03-29 Brian Ripley * DESCRIPTION: version is 0.8-15 * src/R_systat.c: Don't try to parse comments. 2006-02-25 Brian Ripley * src/init.c: use const for tables. 2006-01-26 Brian Ripley * DESCRIPTION: version is 0.8-14 * src/pspp-format-def.h: rename from format.def to avoid confusion with Windows .def files. * R/zzz.R: update FSF address. 2005-12-30 Brian Ripley * DESCRIPTION: version is 0.8-13 * NAMESPACE, R/*.R: use registered symbols in .Call/.External calls. * COPYING: update FSF address 2005-12-19 Brian Ripley * src/SASxport.[ch]: better ways to avoid alignment problems. * src/sfmP.h, src/sfm-read.c: remove packing as it causes alignment problems on 64-bit platforms. 2005-12-14 Brian Ripley * DESCRIPTION: version is 0.8-12 * src/SASxport.c: force alignment of char *, as apparently gcc4's memcpy requires this. 2005-12-12 Brian Ripley * src/sfm-read.c, src/SASxport.h: use int not long. First is harmless, the second may not be on 64-bit platforms. * src/sfm-read.c: reading a structure from a file assumes that alignment is adding no padding, which is not the case on Sparc Solaris's native compilers. 2005-12-08 Brian Ripley * DESCRIPTION: version is 0.8-11 * po/R-fr.po, po/fr.po: add French translations. 2005-11-16 Brian Ripley * src/init.c: new file, add symbol registration. 2005-08-26 Brian Ripley * DESCRIPTION: version is 0.8-10 * src/pfm-read.c, src/sfm-read.c, src/spss.c: replace the abuse of casting an int to/from void *, which correctly warned on 64-bit platforms. 2005-08-19 Brian Ripley * src/Rdbfread.c, man/read.dbf.Rd: read over-wide numeric fields as doubles. 2005-08-15 Thomas Lumley * R/spss.R, man/read.spss.Rd: reverse the order of factor levels when creating factors from SPSS value labels 2005-07-13 Thomas Lumley * DESCRIPTION: version is 0.8-9 2005-07-13 Brian Ripley * R/writeForeignCode.R: * R/writeForeignSAS.R: replace use of dQuote() which gave UTF-8 quotes in a UTF-8 locale. 2005-07-07 Thomas Lumley * R/writeForeignSAS.R: add SAS to write.foreign() 2005-07-05 Thomas Lumley * R/writeForeignCode.R: extra punctuation in SPSS code files. 2005-06-08 Brian Ripley * src/dbfopen.c: suppress a couple of warnings on Solaris. 2005-06-07 Thomas Lumley * src/stataread.c: Writes of empty strings gave an error * DESCRIPTION: version is 0.8-8 2005-05-24 Thomas Lumley * R/read.dta.R, man/read.dta.Rd: by default don't use value labels unless there is a label for every value. * src/sfm-read.c, man/read.spss.Rd: Suppress the "Unrecognized record type 7, subtype 13" warning caused by long variable names in SPSS files. 2005-04-17 Brian Ripley * DESCRIPTION (Version): New version is 0.8-7. * R/dbf.R: further patch from Roger Bivand for all-NA fields. 2005-04-04 Brian Ripley * DESCRIPTION (Version): New version is 0.8-6. * R/dbf.R: patch from Roger Bivand for invalid value for the guess at the width of integer or numeric fields * src/pfm-read.c: match -> pfm_match to avoid warning. 2005-02-05 Brian Ripley * DESCRIPTION (Version): New version is 0.8-5. * R/dbf.R: * R/octave.R: * R/read.dta.R: * R/read.epiinfo.R: * R/read.ssd.R: * R/Sread.R: * R/writeForeignCode.R: * po/R-foreign.pot: * po/foreign.pot: * src/file-handle.c: * src/foreign.h: * src/format.c: * src/minitab.c: * src/pfm-read.c: * src/R_systat.c: * src/Rdbfread.c: * src/Rdbfwrite.c: * src/SASxport.c: * src/sfm-read.c: * src/spss.c: * src/stataread.c: mark error messages for gettext, improve messages. * tests/stata.Rout.save: update for str() changes in R-devel 2004-12-27 Kurt Hornik * DESCRIPTION (Version): New version is 0.8-4. * R/octave.R: New file, adding read.octave() for reading in files in Octave text data format (as generated by 'save -ascii'). * man/read.octave.Rd: New file, documenting the above. * tests/octave.R: * tests/octave.m: * tests/octave.dat: New files for testing read.octave(). 2004-12-27 Brian Ripley * test/stata.Rout.save: update for str() changes in R-devel 2004-12-14 Douglas Bates * src/minitab.c (read_mtp,MTB2SEXP): code for matrices contributed by Rajarshi Guha . 2004-12-02 Martin Maechler * tests/dumpdata: enhanced {logical; NA} * tests/create-dumpdata.S: new {only internal documentation} * tests/S3.R: add verbose=TRUE * DESCRIPTION: New version is 0.8-3. * DESCRIPTION (Imports): stats, methods * R/Sread.R (data.restore): handle "logical"s (with NAs!) correctly; handle NAs better in general, getting rid of extraneous coercion warning. 2004-12-01 Martin Maechler * R/Sread.R (data.restore): handle `ts()' objects properly 2004-11-24 Brian Ripley * DESCRIPTION: New version is 0.8-2. * src/SASxport.c Definition of numerical missing values was applied to character fields. (PR#7389) 2004-11-17 Brian Ripley * DESCRIPTION: New version is 0.8-1. * read.ssd.{R,Rd}: Make work under Windows and tidy up. 2004-11-8 Thomas Lumley * spss.R: Trim trailing spaces from SPSS value labels Don't create a factor when there are fewer labels than non-missing levels * read.spss.Rd: Mention the apparently harmless warning given for recent versions of SPSS files. 2004-10-28 Brian Ripley * DESCRIPTION: Mention read/write .dbf files 2004-10-25 Brian Ripley * DESCRIPTION: New version is 0.8-0. * Added read.systat contributed by Roger Bivand * Added read.dbf, write.dbf based on functions from package 'maptools'. * COPYRIGHTS: New file. 2004-09-02 Thomas Lumley * Add write.foreign for writing to foreign packages * use Date rather than POSIXt for read.dta * Update tests/stata.Rout.save for using Date rather than POSIXt * DESCRIPTION: New version is 0.7 2004-07-29 Thomas Lumley * DESCRIPTION: New version is 0.6-11 * Fix US-style dates in read.epiinfo * Add option to turn off some warnings in read.dta 2004-07-15 Kurt Hornik * DESCRIPTION (Version): New version is 0.6-10. * configure.ac: Protect against possible whitespace in R_HOME when calling R CMD config. 2004-05-22 Kurt Hornik * DESCRIPTION (Version): New version is 0.6-9. * INDEX: Removed. * src/SASxport.c (xport_info, xport_read): Make sure that R_ExpandFileName() is called on a valid string (PR#5049). 2004-04-28 Thomas Lumley * DESCRIPTION: version 0.6-8 * read.dta: 1-byte type was coming through unsigned * tests/: test file with 1-byte type 2004-04-22 Thomas Lumley * DESCRIPTION: version 0.6-7 * read.dta: add option to not convert _ to . in variable names * tests/ tests of the new option and more tests for stata 8. 2003-12-20 Brian Ripley * DESCRIPTION (Version): New version is 0.6-6. * NAMESPACE: New file. * man/read.S.R: Do not export nor document SModeNames. * src/zzz.R: Define .onLoad as well as .First.lib (the latter left in case NAMESPACE is removed for debugging). 2003-12-20 Kurt Hornik * DESCRIPTION (Version): New version is 0.6-5. * TITLE: Removed. * configure: * configure.in: * configure.ac: Upgrade to Autoconf 2.50 style. Header file 'src/vars.h' needs to be in AC_CONFIG_HEADERS (as we do not AC_SUBST() in it). Add testing code for a '-Wno-long-long' C compiler option to shut up warnings from gcc -pedantic in fact due to glibc's byteswap.h bswap_64 macro (which tries using __extension__, but fails ...). * src/Makevars.in: New file for possibly setting PKG_CFLAGS to '-Wno-long-long'. * src/sfm-read.c: Use __extension__ in GNUC version of REM_RND_UP macro. 2003-09-25 Saikat DebRoy * DESCRIPTION: Increased version to 0.6-4. * src/swap_bytes.h.in: The GNU libc header file byteswap.h only provides the bswap_64 macro when using gcc. Use suitable replacement when using another compiler like icc. 2003-09-25 Kurt Hornik * DESCRIPTION (Version): New version is 0.6-3. * man/read.epiinfo.Rd: Codoc mismatch. 2003-08-28 Thomas Lumley * read.spss.Rd: note that strings are padded on the right with spaces. * version is 0.6-2 2003-08-19 Thomas Lumley * read.dta: work around a Stata file that says it has value labels but doesn't. * version is 0.6-2 2003-05-21 Peter Dalgaard BSA * lookup.xport return SAS variable label and format. Slight change of logic for getting variable name (avoid strchr on things that aren't zero-terminated). * version is 0.6-1 2003-05-20 Thomas Lumley * read.dta/write.dta handle Stata 8.0 * version is 0.6 2003-05-08 Brian Ripley * src/* rename int32, flt64 and comment out int16 and flt32, to avoid conflicts on AIX 5.1. * DESCRIPTION: version is 0.5-13 2003-04-04 Duncan Murdoch * bug fix for data.restore (bad error message) 2003-03-01 Duncan Murdoch * bug fix for data.restore (wasn't reading NULL properly) 2002-11-04 Brian Ripley * configure.win didn't work with all toolsets * DESCRIPTION: version is 0.5-8 2002-11-02 Thomas Lumley * Fixed src/stataread.c for version 7/SE (thanks to examples sent by Jason Liao) * version is 0.5-7 2002-07-25 Brian Ripley * src/stataread.c: float NAs were being mapped to NaNs. (Fixed earlier in CVS by Martyn Plummer but not released.) * DESCRIPTION: Version is 0.5-6 2002-05-17 Thomas Lumley * Stata short ints were coming through unsigned * updated SPSS output in tests to follow 2002-04-29 changes * version is 0.5-5 2002-05-14 Thomas Lumley * Mark Myatt's fixes and extensions for read.epiinfo 2002-05-01 Kurt Hornik * DESCRIPTION (Version): New version is 0.5-4. * src/minitab.c: remove compatibility definitions for pre-1.2.0 as otherwise Rversion.h needs to be included explicitly for R 1.6.0. 2002-05-01 Brian Ripley * src/foreign.h: remove compatibility definitions for pre-1.2.0 as otherwise Rversion.h needs to be included explicitly for R 1.6.0. * DESCRIPTION: R >= 1.2.0 given the above change. 2002-04-29 Saikat DebRoy * src/spss.c, R/spss.R, man/read.spss.Rd: read.spss adds a "variable.labels" attribute to the result if any variable labels are present in the SPSS file. 2002-03-27 Douglas Bates * src/SASxport.c (IS_SASNA_CHAR): Silly typo (0x4l, not 0x41) caught by Peter. 2002-03-08 Thomas Lumley * Update stataread.c to read version 7/SE * Add support for Epi Info * SPSS: convert only some value labels to factor levels 2002-03-08 Brian Ripley * DESCRIPTION (Version): New version is 0.4-10. * minitab.c, pfm-read.c, spss.c: add casts as required. * configure.win: added to allow no-intervention installation on Windows. 2002-01-24 Kurt Hornik * DESCRIPTION (Version): New version is 0.4-9. 2002-01-11 Thomas Lumley read.spss reads factor levels, optionally coerces to data.frame 2001-12-13 Thomas Lumley . Typo in Stata date-handling provoked by gctorture() 2001-12-13 Kurt Hornik * src/sfm-read.c (bufread): Do not read in 0 bytes [fix by PD]. 2001-12-04 Kurt Hornik * DESCRIPTION (Version): New version is 0.4-8. 2001-11-13 Thomas Lumley revised factor reading in src/stataread.c, added factor writing for Stata, long names now abbreviate()d not truncated. Fixed various idiocies in writing strings. 2001-11-12 Thomas Lumley * src/stataread.c, R/read.dta.R, man/*.dta.Rd, tests/datefactor.dta, tests/stata.R: read factors, read and write dates in Stata. 2001-10-11 Thomas Lumley * src/stataread.c: use strlen(), not the field width, as the argument to allocString(). 2001-07-23 Saikat DebRoy * src/pfm-read.c, src/spss.c: Do not inline functions on non-gcc compilers. * src/sfmP.h: Don not use the __atribute__ keyword on non-gcc compilers. 2001-07-17 Brian Ripley * DESCRIPTION (Version): New version is 0.4-6. * src/sfm-read.c Use Free not free consistently. * src/spss.c (do_read_SPSS): Always open in binary mode. 2001-06-18 Kurt Hornik * DESCRIPTION (Version): New version is 0.4-5. * src/pfm-read.c (pfm_read_dictionary): Use Calloc() instead of R_alloc(). * src/sfm-read.c (sfm_read_dictionary): Use Calloc() instead of R_alloc(). * src/spss.c (do_read_SPSS): Check for null file pointer. 2001-06-09 Kurt Hornik * tests/*.R, tests/*.Rout.save: Remove `gctorture(TRUE)'. * R/*.R: Change name of filename argument to `file'. Add `PACKAGE' arg in FF calls where missing. Remove .First.lib() from stataread. * man/*.Rd: Change name of filename argument to `file', and be consistent about using keyword `file'. 2001-05-16 Saikat DebRoy * src/SASxport.c (next_xport_info): changed size of allocated array tmp - it must be at least 81. 2001-05-14 Saikat DebRoy * R/read.dta.R, src/stataread.c, man/read.dta.Rd, man/write.dta.Rd: Added Stata Version 7 support from Thomas Lumley 2001-04-09 Saikat DebRoy * src/SASxport.c (next_xport_info): initialized *tailpad to 0. Fixed value of *tailpad when end of file occurs while trying to get a new record (line 350). Fixed possible memory leaks in case of call to error. (xport_info): Fixed possible memory leaks in case of call to error. Removed most of the Calloc-ed arrays and replaced them with R objects. 2001-04-03 Saikat DebRoy * src/SASxport.c (next_xport_info): fixed computation of tailpad when restOfCard != 0. The earlier method used ftell which can give wrong results for long files. 2001-03-31 Brian Ripley * R/read.S.R, man/read.S.Rd: New files adapted from package Rstreams to read S3 objects and dumps. 2001-02-22 Saikat DebRoy * src/pfm-read.c: In read_version_data, added check for date and time with the first character of the field ' '. Removed check for second integer field in the Variable Count Record. Both of these changes are based on bug report by Akio Sone. 2001-02-06 Saikat DebRoy * src/SASxport.c: fixed problem with 8 character names in SAS XPORT format 2001-02-06 Saikat DebRoy * src/SASxport.c: fixed problem with 8 character names in SAS XPORT format 2001-01-24 Douglas Bates * src/SASxport.c: Fixing problem with calculation of the number of rows in SAS XPORT data sets when the rows are short 2001-01-24 Douglas Bates * src/SASxport.c (next_xport_info): Adding yet another rule to try to detect the number of rows in a SAS data set. 2000-12-14 Douglas Bates * cleanup: Added the cleanup script. * src/file-handle.h: Added declaration of fh_init_files to keep -Wall happy. * src/sfm-read.c (read_header): initialized skip_amt to keep -Wall happy. * tests/minitab.Rout.save: Added a missing blank line in this file and in others so they do not produce error reports during R CMD check. 1999-12-15 Douglas Bates * src/minitab.c (strtrim): Corrected the character count. (MTB2SEXP): Added the names of the columns, if they are given. 1999-12-16 Douglas Bates * DESCRIPTION (Package): Created a 0.1-1 release under the package name "foreign". * R/zzz.R: Added the copyright stuff.