Skip to content

Commit ab77145

Browse files
committed
Merge branch 'hotfix'
2 parents 7ed8702 + 78a4c11 commit ab77145

21 files changed

+282
-218
lines changed

.Rbuildignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LZ4/LICENSE$
1414
\.png$
1515
\.yml$
1616
^dataset\.fst$
17-
^res - readme\.fst$
17+
^res_readme\.fst$
1818
^_pkgdown\.yml$
1919
^CRAN-RELEASE$
20+
^revdep$

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
language: R
1+
language: r
22
cache: packages
3-
sudo: false
43
warnings_are_errors: true
54

65
r:
76
- oldrel
87
- release
98
- devel
9+
1010
os:
1111
- linux
1212
- osx
@@ -15,12 +15,11 @@ matrix:
1515
exclude:
1616
- r: devel
1717
os: osx
18+
- r: oldrel
19+
os: osx
1820

19-
before_install:
20-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm &&
21-
export PATH="/usr/local/opt/llvm/bin:$PATH" &&
22-
export LDFLAGS="-L/usr/local/opt/llvm/lib" &&
23-
export CPPFLAGS="-I/usr/local/opt/llvm/include"; fi
21+
brew_packages:
22+
- llvm
2423

2524
r_packages:
2625
- covr

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Package: fst
22
Type: Package
3-
Title: Lightning Fast Serialization of Data Frames for R
3+
Title: Lightning Fast Serialization of Data Frames
44
Description: Multithreaded serialization of compressed data frames using the
55
'fst' format. The 'fst' format allows for random access of stored data and
66
compression with the LZ4 and ZSTD compressors created by Yann Collet. The ZSTD
77
compression library is owned by Facebook Inc.
8-
Version: 0.9.2
9-
Date: 2020-03-31
8+
Version: 0.9.4
9+
Date: 2020-08-26
1010
Authors@R: c(
1111
person("Mark", "Klik", email = "[email protected]", role = c("aut", "cre", "cph")),
1212
person("Yann", "Collet", role = c("ctb", "cph"),
@@ -19,7 +19,7 @@ Imports:
1919
Rcpp
2020
LinkingTo: Rcpp
2121
SystemRequirements: little-endian platform
22-
RoxygenNote: 7.1.0
22+
RoxygenNote: 7.1.1
2323
Suggests:
2424
testthat,
2525
bit64,
@@ -32,5 +32,5 @@ Encoding: UTF-8
3232
Copyright: This package includes sources from the LZ4 library written
3333
by Yann Collet, sources of the ZSTD library owned by Facebook, Inc.
3434
and sources of the fstlib library owned by Mark Klik
35-
URL: https://fstpackage.github.io
35+
URL: http://www.fstpackage.org
3636
BugReports: https://github.com/fstpackage/fst/issues

NEWS.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11

2+
# fst 0.9.4
3+
4+
Version 0.9.4 is a minor update to 'hotfix' an issue with suggested packages as reported by CRAN.
5+
6+
## Bugs solved
7+
8+
* Packages `nanotime`, `bit64` and `lintr` are now used conditionally as is required for packages suggested in DESCRIPTION, see 'Writing R Extensions' 1.1.3.1 (thanks @CRAN for reporting)
9+
10+
211
# fst 0.9.2
312

4-
Version 0.9.2 of the `fst` package brings support for zero-row table serialization and compression for long vectors. In
5-
addition, `fst` was prepared for the change in the default settings for the stringsAsFactors argument (data.frame) in
6-
R 4.0.0.
13+
Version 0.9.2 of the `fst` package brings support for zero-row table serialization and compression for long vectors. In addition, `fst` was prepared for the change in the default settings for the stringsAsFactors argument (data.frame) in R 4.0.0.
714

815
## Library updates
916

R/RcppExports.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ fsthasher <- function(rawVec, seed, blockHash) {
2121
.Call(`_fst_fsthasher`, rawVec, seed, blockHash)
2222
}
2323

24-
fstcomp <- function(rawVec, compressor, compression, hash, r_container) {
25-
.Call(`_fst_fstcomp`, rawVec, compressor, compression, hash, r_container)
24+
fstcomp <- function(rawVec, compressor, compression, hash) {
25+
.Call(`_fst_fstcomp`, rawVec, compressor, compression, hash)
2626
}
2727

28-
fstdecomp <- function(rawVec, r_container) {
29-
.Call(`_fst_fstdecomp`, rawVec, r_container)
28+
fstdecomp <- function(rawVec) {
29+
.Call(`_fst_fstdecomp`, rawVec)
3030
}
3131

3232
getnrofthreads <- function() {

R/compress.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ compress_fst <- function(x, compressor = "ZSTD", compression = 0, hash = FALSE)
4444
stop("Parameter x is not set to a raw vector.")
4545
}
4646

47-
container <- as.list(1)
48-
compressed_vec <- fstcomp(x, compressor, as.integer(compression), hash, container)
47+
compressed_vec <- fstcomp(x, compressor, as.integer(compression), hash)
4948

5049
if (inherits(compressed_vec, "fst_error")) {
5150
stop(compressed_vec)
@@ -67,8 +66,7 @@ decompress_fst <- function(x) {
6766
stop("Parameter x should be a raw vector with compressed data.")
6867
}
6968

70-
container <- as.list(1)
71-
decompressed_vec <- fstdecomp(x, container)
69+
decompressed_vec <- fstdecomp(x)
7270

7371
if (inherits(decompressed_vec, "fst_error")) {
7472
stop(decompressed_vec)

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require(data.table)
3636
require(fst)
3737
require(knitr)
3838
39-
speed_results <- read_fst("res - readme.fst", as.data.table = TRUE)
39+
speed_results <- read_fst("res_readme.fst", as.data.table = TRUE)
4040
4141
speeds <- speed_results[NrOfRows == 5e7, list(
4242
`Time (ms)` = as.integer(median(Time)),

cran-checklist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
* Update README.Rmd and verify generated README.md on Github (release)
1616
* Update cran_comments.md
1717
* Build docs folder using pkgdown::build_site()
18-
* Update NEWS.md and make sure to remove '(in development)' in the version title
19-
and update the version number
18+
* Update NEWS.md and make sure to remove '(in development)' in the version title and update version number
2019
* Credit all GitHub contributions in NEWS.md
2120
* Submit to CRAN
2221

2322
# After releasing to CRAN
2423

2524
* Update NEWS.md with the release date
25+
* Build docs folder using pkgdown::build_site(). Check that the package date is correct.
2626
* Merge branch release into master
2727
* Tag the release on Github
28-
* Commit the fstpackage.github.io repository with the latest docs
29-
* Merge branch master into release
28+
* Commit latest docs to the fstpackage.github.io and fstpackage.github.io/fst repository
3029
* Go to the repository release page and create a new release with tag version vx.y.z.
3130
Copy and paste the contents of the relevant NEWS.md section into the release notes.
31+
* Merge branch master into release
3232
* Add '(in development)' to version title in NEWS.md and update to odd version number
3333
* Check package startup message
3434
* Merge release branch into develop

cran-comments.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11

2-
## Resubmission 2
2+
## Resubmission
33

4-
Resubmission 1 failed on clang-10 ubsan warnings ("adding offset to a null pointer"). These warnings have been fixed locally and checked on a local instrumented build using clang-10 on Ubuntu 18.04.4 (thanks Prof Hornik and Prof Ripley for the pointers).
5-
6-
## Resubmission 1
7-
8-
The pre-checks for my original submission failed on a specific warning in the included ZSTD compressor component (from Facebook). To remedy this, I've adapted the C++ macro responsible for the warning and all corresponding calls. This could be safely done as the macro is only activated in a specially prepared DEBUG build and therefore it is not used bycalls from the fst package. I have raised an issue with the ZSTD team addressing this problem (see https://github.com/facebook/zstd/issues/2035).
4+
This resubmission of fst (v0.9.4) addresses the submission comments of Dr. Uwe Ligges on the package title and URL.
95

106
## Submission
117

12-
This submission of fst (v0.9.2) addresses Dr. Kurt Hornik's request to fix problems shown for the r-devel checks. These issues are related to the new stringsAsFactors = FALSE default, which is planned for R 4.0.0.
8+
This submission of fst (v0.9.4) addresses Prof. Brian Ripley's request to fix problems shown in updated CRAN checks. Packages that are in Suggests are now used conditionally in the package code and tests.
139

1410
## Test environments
1511

1612
* OSX on travis-ci (version 10.13.6)
17-
* Ubuntu Ubuntu 16.04.6 LTS on travis-ci
18-
* Ubuntu 19.10 locally
19-
* Ubuntu 19.10 locally using clang-6.0
13+
* Ubuntu 16.04.6 LTS on travis-ci
14+
* Ubuntu 18.04 locally using clang-10.0
2015
* Docker with the rocker/r-devel-ubsan-clang instrumented image
21-
* Local Ubuntu with instrumenten image using clang-10
16+
* Local Ubuntu with instrumented image using clang-10
2217
* Windows 10 local R 3.6.4
23-
* Windows 10 local R-dev 4.0.0 pre-release (r77640)
24-
* Windows Server 2012 R2 x64 (build 9600) on AppVeyor (R 3.6.3)
25-
* Singularity-container package for running rchk on Ubuntu 18.10
26-
* Valgrind on Ubuntu 19.10.
18+
* Windows 10 local R-dev 4.0.2
19+
* Singularity-container package for running rchk on Ubuntu 18.04
20+
* Valgrind on Ubuntu 18.04
2721
* Rhub (all available systems)
2822

2923
## R CMD check results
@@ -34,14 +28,20 @@ There are no errors or warnings.
3428

3529
I have run R CMD check on downstream dependencies and found no issues. The notes on the grattan and tidyfst packages are unrelated to fst.
3630

37-
-- CHECKED 9 packages --
38-
39-
disk.frame 0.3.4
40-
drake 7.11.0
41-
expss 0.10.1
42-
grattan 1.8.0.0 -> 1 note unrelated to fst
43-
hdd 0.1.0
44-
heims 0.4.0
45-
readabs 0.4.3
46-
rio 0.5.16
47-
tidyfst 0.7.7 -> 1 note unrelated to fst
31+
-- CHECKED 15 packages --
32+
33+
disk.frame 0.3.7
34+
drake 7.12.4
35+
epwshiftr 0.1.1
36+
expss 0.10.6
37+
grattan 1.9.0.0 -> 1 note unrelated to fst
38+
hdd 0.1.0
39+
heims 0.4.0
40+
lazyarray 1.1.0
41+
prt 0.1.0
42+
qtl2fst 0.22-7
43+
raveio 0.0.3
44+
readabs 0.4.3
45+
rio 0.5.16
46+
tidyfst 0.9.8 -> 1 note unrelated to fst
47+
tidyft 0.4.5 -> 1 note unrelated to fst
File renamed without changes.

0 commit comments

Comments
 (0)