2023-11-27 Dirk Eddelbuettel * src/cnpy.h (Rassert): Add format string to Rf_error call * src/cnpy.h (npy_save): Correct printf string for long size * .github/workflows/ci.yaml (jobs): Update to actions/checkout@v4 2023-02-08 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll minor version * src/Makevars: No longer set CXX_STD * src/Makevars.win: Idem * inst/CITATION: Update to new format preferred by r-devel 2022-11-10 Dirk Eddelbuettel * .github/workflows/ci.yaml (jobs): Update to actions/checkout@v3 2022-03-24 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.11 * vignettes/*.Rnw: Created to Rnw wrappers for pdf vignettes * vignettes/rmd/*: Moved Rmd and bib files from vignettes/ * vignettes/pdf/*: Moved pdf vignettes/ created from Rmd * DESCRIPTION (Suggests): Removed knitr and rmarkdown * DESCRIPTION (VignetteBuilder): Removed * .Rbuildignore: Expanded * cleanup: Removed bashishm 2021-12-08 Dirk Eddelbuettel * README.md: Remove unused continuous integration artifact and badge 2021-04-24 Dirk Eddelbuettel * DESCRIPTION (URL): Add repo 2021-04-15 Dirk Eddelbuettel * README.md: Update two URLs to https 2021-01-03 Dirk Eddelbuettel * .github/workflows/ci.yaml: Add CI runner using r-ci * README.md: Add new badge 2020-06-20 Dirk Eddelbuettel * .travis.yml: Upgrade to 'bionic' and R 4.0.0 2020-06-19 Dirk Eddelbuettel * README.md: Add 'last commit' badge 2019-04-05 Dirk Eddelbuettel * README.md: Add dependency badge * vignettes/UsingReticulate.Rmd: Added brief section on 3d-arrays * tests/createFiles.py: Created three-dim array for vignette 2018-11-16 Dirk Eddelbuettel * man/RcppCNPy-package.Rd: Add that 32bit integer and 64bit floats are the key types, and casting may be needed from other width. 2018-09-02 Dirk Eddelbuettel * .travis.yml: Switch Travis CI to R 3.5 repo 2018-07-29 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.10 * README.md: Also mention reticulate and vignette * src/RcppExports.cpp: Added autogenerated file * src/init.c: Removed, content in src/RcppExports.cpp 2018-07-22 Dirk Eddelbuettel * vignettes/RcppCNPy-intro.Rmd: Updated, now with collapse option * vignettes/UsingReticulate.Rmd: Idem * vignettes/RcppCNPy.bib: New file to allow pandoc version 2.* use * .travis.yml: Also install r-cran-reticulate 2018-03-22 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.9 2018-03-21 Dirk Eddelbuettel * vignettes/UsingReticulate.Rmd: New vignette showing how to use the reticulate package (and vignette results 'fixed' to not add dependency) 2018-02-28 Dirk Eddelbuettel * src/cnpyMod.cpp (npySave): Operate on bool from R; default to TRUE * R/utils.R (.checkPath): Now just returns the dir.exists() result * man/RcppCNPy-package.Rd: Updated documentation for new argument 2018-02-27 Dirk Eddelbuettel * src/cnpyMod.cpp (npySave): Add new option to check directory and path before attempting to save * R/utils.R (.checkPath): New helper function to check if a directory contained in a path exists 2018-01-04 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.8 * vignettes/RcppCNPy-intro.Rmd: Set knitr chunk option 'python.reticulate=FALSE' to avoid vignette dependency 2017-09-22 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.7 * cleanup: Expanded cleanup * vignettes/RcppCNPy-intro.Rmd: Re-built under pinp 0.0.2; also disable evaluation if Sys.info() detects the wonders of Windows 2017-09-17 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll minor version * vignettes/RcppCNPy-intro.Rmd: Renamed, updated, uses pinp * .travis.yml (install): Add edd/misc ppa for r-cran-pinp * src/init.c: Added to register dynamic routines 2017-08-26 Dirk Eddelbuettel * .travis.yml (before_install): Use https for curl fetch 2016-09-25 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Version 0.2.6 * inst/CITATION: Added with new JOSS paper * README.md: One more canonical URL 2016-09-24 Dirk Eddelbuettel * README.md: Added Zenodo doi reference 2016-09-22 Dirk Eddelbuettel * README.md: Remove one redundant code line 2016-09-21 Dirk Eddelbuettel * README.md: Added 'Feedback' section, added JOSS badge * man/RcppCNPy-package.Rd: Add examples 2016-08-26 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.5 * vignettes/RcppCNPy-intro.Rnw: Updated vignette, added Wush * README.md: Updated, uses canonical URLs for CRAN 2016-08-24 Dirk Eddelbuettel * src/cnpy.cpp: Carry one small fix over from cnpy upstream; also applied to gzfile variant; revert to using 'long long' under C++11 * .travis.yml: Switch to using run.sh for Travis CI 2015-02-12 Dirk Eddelbuettel * .travis.yml: Use ppa:edd/misc to apt-get install Rcpp and highlight 2015-01-05 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.4 * inst/NEWS.Rd: Updated with release news 2015-01-05 Wush Wu * src/cnpyMod.cpp: Correct the clone() instantiation for big endian 2015-01-04 Dirk Eddelbuettel * DESCRIPTION: Add Wush to Author:, bump Date: and Version: * src/cnpy.h: Remove BigEndianTest() * src/cnpy.cpp: Always set header entry to little endian * src/cnpyMod.cpp: Use Rcpp::clone() for deep copy * tests/saveAndLoad.R: Some simplifications * tests/saveAndLoad.Rout.save: Updated corresponding reference output 2015-01-04 Wush Wu * src/cnpy.cpp: Make BigEndianTest() unconditional * src/cnpy.h: Move swapEndian() here and use in header * src/cnpyMod.cpp: - Correct saved size for matrices, - Ensure deep copy prior to swapping endianness * tests/saveAndLoad.R: Add more tests 2015-01-03 Dirk Eddelbuettel * DESCRIPTION: Bump Date: and Version: * src/cnpyMod.cpp: Several corrections on file save: - Correct saving on integer matrices and vectors by testing for integer before testing for numeric (which is always true for int as well) - Convert integer object to int64_t and save as int64_t - For good measure, properly specify template type when saving - [So far untested] On big endian systems, convert before writing * tests/saveAndLoad.R: Added tests for saving (and loading) of both uncompressed and compressed integer matrices * tests/saveAndLoad.Rout.saev: Updated corresponding reference output 2015-01-02 Dirk Eddelbuettel * src/cnpyMod.cpp: Apply correction by Wush Wu to correct (if needed) for endianness before instantiating vectors when reading from file 2015-01-01 Dirk Eddelbuettel * src/cnpyMod.cpp: Move byte-swap call off into helper functions 2014-12-31 Dirk Eddelbuettel * src/cnpyMod.cpp: Correct call to byte swap for big endian systems 2014-12-28 Dirk Eddelbuettel * DESCRIPTION: Edited Title: and Description:; bumped Date: and Version: * tests/loadFiles.R: Print results; remove test for [known] int support * tests/loadFiles.Rout.save: Updated as well 2014-12-01 Romain Francois * src/cnpyMod.cpp: Use const_iterator 2014-08-05 Dirk Eddelbuettel * src/cnpyMod.cpp: Attempt to deal with big endian for int64 and double 2014-08-04 Dirk Eddelbuettel * vignettes/RcppCNPy-intro.Rnw: Do not assume 'system("gzip ...")' works because, y'a know, there is Windoze... 2014-04-10 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.3 * inst/NEWS.Rd: Updated with release news 2014-04-09 Dirk Eddelbuettel * vignettes/RcppCNPy-intro.Rnw: - Updated vignette to reflect integer support on all platforms thanks to 'long long' - Switched to font used in Rcpp vignettes - Switched to vignette processing via highlight * man/RcppCNPy-package.Rd: Updated to reflect integer support * src/Makevars.win: Updated as well * .travis.yml: Added _R_CHECK_FORCE_SUGGESTS_=FALSE to not stumble over Suggests: highlight not being installed 2014-04-08 Dirk Eddelbuettel * src/Makevars: Set 'CXX_STD = CXX11' which gets us 'long long' * DESCRIPTION: Add depends on R (>= 3.1.0) * src/cnpy.h: No longer test for RCPP_HAS_LONG_LONG_TYPES * src/cnpy.cpp: Idem * src/cnpyMod.cpp: Idem 2013-11-29 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.2 * src/cnpy.cpp (BigEndianTest): Re-use the R compile-time configuration result to switch between little and big endian * tests/saveAndLoad.R: New test file for save and load cycle * tests/saveAndLoad.Rout.save: And result for comparison 2013-11-28 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.1 * DESCRIPTION: Import methods and Rcpp * NAMESPACE: Idem * src/cnpy.h: Synchronized with version in cnpy repo * src/cnpy.cpp: Idem 2013-02-20 Dirk Eddelbuettel * src/cnpyMod.cpp (npyHasIntegerSupport): New function to test if integer support was compiled in, also exported via Rcpp Modules to R * man/RcppCNPy-package.Rd: Added documentation entry * tests/loadFiles.R: Updated regression test to use run-time integer support check, and test integer support if available * tests/loadFiles.Rout.save: Updated accordingly * RcppCNPy-intro.Rnw: Updated the discussion of integer support and clarified that only RcppCNPy needs to be rebuilt with -std=c++11 * DESCRIPTION: Idem * inst/THANKS: Added to show thanks to Carl and Gong 2013-02-19 Dirk Eddelbuettel * src/cnpy.h: Define R_NO_REMAP before including Rinternals to not define length(), error(), ... but rather Rf_length(), Rf_error() * src/cnpy.cpp: Add a bogus unused variable at the never-reached end of code (after an error exit) to silence the pedantic mode of g++ 2012-07-30 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.0 * src/cnpyMod.cpp: (npySave): Support gzip'ed files for saving (npyLoad): Support new argument 'dotranspose', plug a memory leak * src/cnpy.h (cnpy): Added npy_gzsave() function * man/RcppCNPy-package.Rd: Document new gzip-compression * demo/timings.R: Use new gzip-compression feature * vignettes/RcppCNPy-intro.Rnw: Updated as well * inst/NEWS.Rd: Updated as well 2012-07-07 Dirk Eddelbuettel * DESCRIPTION: Version 0.1.0 * vignettes/RcppCNPy-intro.Rnw: Added vignette documentation * demo/timings.R: Added simple timing benchmark demo 2012-07-06 Dirk Eddelbuettel * src/cnpy.h: Include cstdint for int64_t if C++0x has been enabled * src/cnpyMod.cpp: Support integer types if C++0x available * tests/: Simple set of regression tests added 2012-07-05 Dirk Eddelbuettel * src/cnpyMod.cpp: Added transpose() method to transparently deal with the Fortran-vs-C storage order difference between Python and R. Also added support for reading vectors. * src/cnpy.{cpp,h}: Added support for loading from .npy.gz files which is automagically enabled if the filename ends in ".gz" 2012-07-04 Dirk Eddelbuettel * Initial version 0.0.1 * src/cnpy.{cpp,h}: Numerous minor changes to conform to CRAN Policy * src/cnpyMod.cpp: Rcpp modules wrapping of two function npyLoad and npySave which work on one- and two-dimensional objects of integer or numeric type. Note that Matrices need a transpose due to numpy Fortran ordering.