Skip to content

Commit 5f729c5

Browse files
committed
Merge branch 'hotfix'
2 parents ab77145 + 21a3b6a commit 5f729c5

File tree

14 files changed

+125
-80
lines changed

14 files changed

+125
-80
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LZ4/LICENSE$
1818
^_pkgdown\.yml$
1919
^CRAN-RELEASE$
2020
^revdep$
21+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [develop, release, hotfix, master]
6+
pull_request:
7+
branches: [develop, release, hotfix, master]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macOS-latest, r: 'release'}
22+
- {os: windows-latest, r: 'release'}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
26+
27+
env:
28+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29+
R_KEEP_PKG_SOURCE: yes
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
34+
- uses: r-lib/actions/setup-pandoc@v1
35+
36+
- uses: r-lib/actions/setup-r@v1
37+
with:
38+
r-version: ${{ matrix.config.r }}
39+
http-user-agent: ${{ matrix.config.http-user-agent }}
40+
use-public-rspm: true
41+
42+
- uses: r-lib/actions/setup-r-dependencies@v1
43+
with:
44+
extra-packages: rcmdcheck
45+
46+
- uses: r-lib/actions/check-r-package@v1
47+
48+
- name: Show testthat output
49+
if: always()
50+
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
51+
shell: bash
52+
53+
- name: Upload check results
54+
if: failure()
55+
uses: actions/upload-artifact@main
56+
with:
57+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
58+
path: check

DESCRIPTION

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@ 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.4
9-
Date: 2020-08-26
8+
Version: 0.9.6
9+
Date: 2022-02-01
1010
Authors@R: c(
1111
person("Mark", "Klik", email = "[email protected]", role = c("aut", "cre", "cph")),
1212
person("Yann", "Collet", role = c("ctb", "cph"),
1313
comment = "Yann Collet is author of the bundled LZ4 and ZSTD code and copyright holder of LZ4"),
1414
person("Facebook, Inc.", role = "cph", comment = "Bundled ZSTD code"))
15-
LazyData: true
1615
Depends:
1716
R (>= 3.0.0)
1817
Imports:
1918
Rcpp
2019
LinkingTo: Rcpp
2120
SystemRequirements: little-endian platform
22-
RoxygenNote: 7.1.1
21+
RoxygenNote: 7.1.2
2322
Suggests:
2423
testthat,
2524
bit64,

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
# fst 0.9.6
3+
4+
Version 0.9.6 is a minor update to 'hotfix' an issue with the use of `sample.int()`. All calls to `sample.int()` now
5+
explicitly reference a length one size object.
6+
27
# fst 0.9.4
38

49
Version 0.9.4 is a minor update to 'hotfix' an issue with suggested packages as reported by CRAN.

README.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ knitr::opts_chunk$set(
1616

1717
<img src="fst.png" align="right" height="196" width="196" />
1818

19-
[![Linux/OSX Build Status](https://travis-ci.org/fstpackage/fst.svg?branch=develop)](https://travis-ci.org/fstpackage/fst)
20-
[![Windows Build status](https://ci.appveyor.com/api/projects/status/6g6kp8onpb26jhnm/branch/develop?svg=true)](https://ci.appveyor.com/project/fstpackage/fst/branch/develop)
19+
[![Build Status](https://github.com/fstpackage/fst/actions/workflows/R-CMD-check.yaml/badge.svg?branch=develop)](https://github.com/fstpackage/fst/actions/workflows/R-CMD-check.yaml)
2120
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
2221
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fst)](https://cran.r-project.org/package=fst)
2322
[![codecov](https://codecov.io/gh/fstpackage/fst/branch/develop/graph/badge.svg)](https://codecov.io/gh/fstpackage/fst)

README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
<img src="fst.png" align="right" height="196" width="196" />
55

6-
[![Linux/OSX Build
7-
Status](https://travis-ci.org/fstpackage/fst.svg?branch=develop)](https://travis-ci.org/fstpackage/fst)
8-
[![Windows Build
9-
status](https://ci.appveyor.com/api/projects/status/6g6kp8onpb26jhnm/branch/develop?svg=true)](https://ci.appveyor.com/project/fstpackage/fst/branch/develop)
6+
[![Build
7+
Status](https://github.com/fstpackage/fst/actions/workflows/R-CMD-check.yaml/badge.svg?branch=develop)](https://github.com/fstpackage/fst/actions/workflows/R-CMD-check.yaml)
108
[![License: AGPL
119
v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
12-
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/fst)](https://cran.r-project.org/package=fst)
10+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fst)](https://cran.r-project.org/package=fst)
1311
[![codecov](https://codecov.io/gh/fstpackage/fst/branch/develop/graph/badge.svg)](https://codecov.io/gh/fstpackage/fst)
1412
[![downloads](http://cranlogs.r-pkg.org/badges/fst)](http://cran.rstudio.com/web/packages/fst/index.html)
15-
[![total\_downloads](https://cranlogs.r-pkg.org/badges/grand-total/fst)](http://cran.rstudio.com/web/packages/fst/index.html)
13+
[![total_downloads](https://cranlogs.r-pkg.org/badges/grand-total/fst)](http://cran.rstudio.com/web/packages/fst/index.html)
1614

1715
## Overview
1816

@@ -26,16 +24,16 @@ access, both in column and rows.
2624
The figure below compares the read and write performance of the *fst*
2725
package to various alternatives.
2826

29-
| Method | Format | Time (ms) | Size (MB) | Speed (MB/s) | N |
30-
| :------------- | :------ | :-------- | :-------- | :----------- | :------ |
31-
| readRDS | bin | 1577 | 1000 | 633 | 112 |
32-
| saveRDS | bin | 2042 | 1000 | 489 | 112 |
33-
| fread | csv | 2925 | 1038 | 410 | 232 |
34-
| fwrite | csv | 2790 | 1038 | 358 | 241 |
35-
| read\_feather | bin | 3950 | 813 | 253 | 112 |
36-
| write\_feather | bin | 1820 | 813 | 549 | 112 |
37-
| **read\_fst** | **bin** | **457** | **303** | **2184** | **282** |
38-
| **write\_fst** | **bin** | **314** | **303** | **3180** | **291** |
27+
| Method | Format | Time (ms) | Size (MB) | Speed (MB/s) | N |
28+
|:--------------|:--------|:----------|:----------|:-------------|:--------|
29+
| readRDS | bin | 1577 | 1000 | 633 | 112 |
30+
| saveRDS | bin | 2042 | 1000 | 489 | 112 |
31+
| fread | csv | 2925 | 1038 | 410 | 232 |
32+
| fwrite | csv | 2790 | 1038 | 358 | 241 |
33+
| read_feather | bin | 3950 | 813 | 253 | 112 |
34+
| write_feather | bin | 1820 | 813 | 549 | 112 |
35+
| **read_fst** | **bin** | **457** | **303** | **2184** | **282** |
36+
| **write_fst** | **bin** | **314** | **303** | **3180** | **291** |
3937

4038
These benchmarks were performed on a laptop (i7 4710HQ @2.5 GHz) with a
4139
reasonably fast SSD (M.2 Samsung SM951) using the dataset defined below.
@@ -82,7 +80,7 @@ devtools::install_github("fstPackage/fst", ref = "develop")
8280
## Basic usage
8381

8482
Using *fst* is simple. Data can be stored and retrieved using methods
85-
*write\_fst* and *read\_fst*:
83+
*write_fst* and *read_fst*:
8684

8785
``` r
8886
# Generate some random data frame with 10 million rows and various column types
@@ -117,7 +115,7 @@ You can retrieve a selection of columns and rows with:
117115
This reads rows 2000 to 5000 from columns *Logical* and *Factor* without
118116
actually touching any other data in the stored file. That means that a
119117
subset can be read from file **without reading the complete file
120-
first**. This is different from, say, *readRDS* or *read\_feather* where
118+
first**. This is different from, say, *readRDS* or *read_feather* where
121119
you have to read the complete file or column before you can make a
122120
subset.
123121

cran-checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Travis Linux and OSX
1010
- AppVeyor (Windows Server)
1111
- latest R dev version on Windows
12-
* Build packages with dependencies on fst
12+
* Test packages with dependencies on fst using revdepcheck::revdep_check()
1313
* Merge develop branch into release branch
1414
* Bump version to even value in DESCRIPTION and check package startup message
1515
* Update README.Rmd and verify generated README.md on Github (release)

cran-comments.md

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11

2-
## Resubmission
3-
4-
This resubmission of fst (v0.9.4) addresses the submission comments of Dr. Uwe Ligges on the package title and URL.
5-
62
## Submission
73

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.
4+
This submission of fst (v0.9.6) addresses package build errors caused by the incorrect use of the size argument in
5+
sample.int() as reported by Prof Ripley.
96

107
## Test environments
118

12-
* OSX on travis-ci (version 10.13.6)
13-
* Ubuntu 16.04.6 LTS on travis-ci
9+
* macOS 11.6.2 20G314 using R 4.1.2 on github build infrastructure
10+
* Ubuntu 20.04.3 LTS using R version 4.0.5 on github build infrastructure
11+
* Ubuntu 20.04.3 LTS using R 4.1.2 on github build infrastructure
12+
* Ubuntu 20.04.3 LTS using R dev (2022-01-30 r81596) on github build infrastructure
13+
* Microsoft Windows Server 2019 10.0.17763 Datacenter using R 4.1.2 on github build infrastructure
1414
* Ubuntu 18.04 locally using clang-10.0
1515
* Docker with the rocker/r-devel-ubsan-clang instrumented image
1616
* Local Ubuntu with instrumented image using clang-10
17-
* Windows 10 local R 3.6.4
18-
* Windows 10 local R-dev 4.0.2
17+
* Windows 10 local R 3.6.3
1918
* Singularity-container package for running rchk on Ubuntu 18.04
2019
* Valgrind on Ubuntu 18.04
2120
* Rhub (all available systems)
@@ -24,24 +23,9 @@ This submission of fst (v0.9.4) addresses Prof. Brian Ripley's request to fix pr
2423

2524
There are no errors or warnings.
2625

27-
## Downstream dependencies
28-
29-
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.
30-
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
26+
## revdepcheck results
27+
28+
We checked 29 reverse dependencies (26 from CRAN + 3 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
29+
30+
* We saw 0 new problems
31+
* We failed to check 0 packages

src/RcppExports.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
using namespace Rcpp;
77

8+
#ifdef RCPP_USE_GLOBAL_ROSTREAM
9+
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
10+
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
11+
#endif
12+
813
// fstlib_version
914
int fstlib_version();
1015
RcppExport SEXP _fst_fstlib_version() {

0 commit comments

Comments
 (0)