Skip to content

Commit 19dc728

Browse files
committed
Updated GitHub repo and package infrastructure
1 parent 6c32ad3 commit 19dc728

13 files changed

Lines changed: 220 additions & 26 deletions

DESCRIPTION

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
Package: data.io
22
Type: Package
33
Version: 1.6.0
4-
Title: Read and Write Data in Different Formats
4+
Title: 'SciViews::R' - Read and Write Data in Different Formats
55
Description: Read or write data from many different formats (tabular datasets,
66
from statistic software ...) into R objects. Add labels and units in
77
different languages.
8-
Authors@R: c(person("Philippe", "Grosjean", role = c("aut", "cre"),
9-
email = "phgrosjean@sciviews.org",
10-
comment = c(ORCID = "0000-0002-2694-9471")))
8+
Authors@R: c(
9+
person("Philippe", "Grosjean", role = c("aut", "cre"),
10+
email = "phgrosjean@sciviews.org",
11+
comment = c(ORCID = "0000-0002-2694-9471")))
1112
Maintainer: Philippe Grosjean <phgrosjean@sciviews.org>
1213
Depends:
1314
R (>= 4.2.0)
1415
Imports:
1516
data.table (>= 1.15.4),
1617
data.trame (>= 0.9.0),
1718
Hmisc (>= 5.0.1),
18-
lifecycle (>= 1.0.3),
19+
lifecycle (>= 1.0.0),
1920
utils (>= 4.2.0),
2021
R.utils (>= 2.13.0),
2122
readr (>= 2.1.4),
@@ -35,15 +36,16 @@ Suggests:
3536
readxl (>= 1.4.2),
3637
writexl (>= 1.4.2),
3738
WriteXLS (>= 6.4.0),
39+
covr (>= 3.5.0),
3840
knitr (>= 1.42),
3941
rmarkdown (>= 2.21),
4042
spelling (>= 2.2.1),
4143
testthat (>= 3.0.0)
4244
Remotes:
4345
SciViews/data.trame,
4446
SciViews/svBase
45-
License: MIT + file LICENSE
46-
URL: https://github.com/SciViews/data.io, https://www.sciviews.org/data.io/
47+
License: MIT + file LICENSE
48+
URL: https://github.com/SciViews/data.io, https://www.sciviews.org/data.io/, https://sciviews.r-universe.dev/data.io
4749
BugReports: https://github.com/SciViews/data.io/issues
4850
Roxygen: list(markdown = TRUE)
4951
RoxygenNote: 7.3.2

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ importFrom(data.trame,data.trame)
4444
importFrom(data.trame,is.data.trame)
4545
importFrom(lifecycle,badge)
4646
importFrom(lifecycle,deprecate_soft)
47+
importFrom(lifecycle,deprecated)
4748
importFrom(readr,default_locale)
4849
importFrom(readr,read_lines)
4950
importFrom(rlang,quos)

R/data.io-package.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@
1818
#' object, to be used while pretty printing a table or plot.
1919
#'
2020

21+
# The following block is used by usethis to automatically manage
22+
# roxygen namespace tags. Modify with care!
2123
## usethis namespace: start
2224
#' @importFrom data.table fread fwrite
2325
#' @importFrom data.trame data.trame as.data.trame is.data.trame
24-
#' @importFrom tibble tibble tribble as_tibble is_tibble add_column
25-
#' @importFrom tsibble as_tsibble
26-
#' @importFrom utils .DollarNames data download.file
26+
#' @importFrom lifecycle badge deprecated deprecate_soft
2727
#' @importFrom R.utils gunzip
2828
#' @importFrom readr default_locale read_lines
2929
#' @importFrom rlang quos
3030
#' @importFrom svBase default_dtx
31-
#' @importFrom lifecycle badge deprecate_soft
31+
#' @importFrom tibble tibble tribble as_tibble is_tibble add_column
32+
#' @importFrom tsibble as_tsibble
33+
#' @importFrom utils .DollarNames data download.file
3234
## usethis namespace: end
3335
"_PACKAGE"

README.Rmd

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
output: github_document
3+
---
4+
5+
<!-- README.md is generated from README.Rmd. Please edit that file -->
6+
7+
```{r, include=FALSE}
8+
knitr::opts_chunk$set(collapse = TRUE, comment = "#>",
9+
fig.path = "man/figures/README-", out.width = "100%")
10+
```
11+
12+
# 'SciViews::R' - Read and Write Data in Different Formats <a href="https://www.sciviews.org/data.io"><img src="man/figures/logo.png" align="right" height="138" /></a>
13+
14+
<!-- badges: start -->
15+
[![R-CMD-check](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml)
16+
[![codecov](https://codecov.io/gh/SciViews/data.io/graph/badge.svg?token=Ei9DhKMdnO)](https://codecov.io/gh/SciViews/data.io)
17+
[![CRAN Status](https://www.r-pkg.org/badges/version/data.io)](https://cran.r-project.org/package=data.io)
18+
[![r-universe status](https://sciviews.r-universe.dev/badges/data.io)](https://sciviews.r-universe.dev/data.io)
19+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
20+
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable))
21+
<!-- badges: end -->
22+
23+
{data.io} main functions are `read()` and `write()`. They are made super-easy to import and export data in various formats in an unified way (they use functions from other packages under the hood like {haven}, {readr}, {readxl}, {writexl} ...). They care about metadata, in particular, meaningful labels and units for the variables. Also, a mechanism to preprocess data sets using sidecar files, and to translate them into various languages are provided for a subset of R packages data sets.
24+
25+
## Installation
26+
27+
{data.io} is not available from CRAN yet. You should install it from the [SciViews R-Universe](https://sciviews.r-universe.dev). To install this package and its dependencies, run the following command in R:
28+
29+
```{r, eval=FALSE}
30+
install.packages('data.io', repos = c('https://sciviews.r-universe.dev',
31+
'https://cloud.r-project.org'))
32+
```
33+
34+
You can also install the latest development version. Make sure you have the {remotes} R package installed:
35+
36+
``` r
37+
install.packages("remotes")
38+
```
39+
40+
Use `install_github()` to install the {data.io} package from Github (source from **main** branch will be recompiled on your machine):
41+
42+
``` r
43+
remotes::install_github("SciViews/data.io")
44+
```
45+
46+
R should install all required dependencies automatically, and then it should compile and install {data.io}.
47+
48+
## Further explore {data.io}
49+
50+
You can get further help about this package this way. Make the {data.io} package available in your R session:
51+
52+
``` r
53+
library("data.io")
54+
```
55+
56+
Get help about this package:
57+
58+
``` r
59+
library(help = "data.io")
60+
help("data.io-package")
61+
vignette("data-io") # None is installed with install_github()
62+
```
63+
64+
For further instructions, please, refer to these help pages at <https://www.sciviews.org/data.io/>.
65+
66+
## Code of Conduct
67+
68+
Please note that the {data.io} package is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

README.md

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,63 @@
1-
# Read and Write Data in Different Formats <a href='https://www.sciviews.org/data.io'><img src='man/figures/logo.png' align='right' height='139'/></a>
21

3-
<!-- badges: start -->
2+
<!-- README.md is generated from README.Rmd. Please edit that file -->
3+
4+
# ‘SciViews::R’ - Read and Write Data in Different Formats <a href="https://www.sciviews.org/data.io"><img src="man/figures/logo.png" align="right" height="138" /></a>
45

5-
[![R-CMD-check](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/SciViews/data.io/branch/main/graph/badge.svg)](https://app.codecov.io/gh/SciViews/data.io?branch=main) [![CRAN Status](https://www.r-pkg.org/badges/version/data.io)](https://cran.r-project.org/package=data.io) [![r-universe status](https://sciviews.r-universe.dev/badges/data.io)](https://sciviews.r-universe.dev/data.io) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable))
6+
<!-- badges: start -->
67

8+
[![R-CMD-check](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/SciViews/data.io/actions/workflows/R-CMD-check.yaml)
9+
[![codecov](https://codecov.io/gh/SciViews/data.io/graph/badge.svg?token=Ei9DhKMdnO)](https://codecov.io/gh/SciViews/data.io)
10+
[![CRAN
11+
Status](https://www.r-pkg.org/badges/version/data.io)](https://cran.r-project.org/package=data.io)
12+
[![r-universe
13+
status](https://sciviews.r-universe.dev/badges/data.io)](https://sciviews.r-universe.dev/data.io)
14+
[![License:
15+
MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
16+
[![Lifecycle:
17+
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable))
718
<!-- badges: end -->
819

9-
{data.io} main functions are `read()` and `write()`. They are made super-easy to import and export data in various formats in an unified way (they use functions from other packages under the hood like {haven}, {readr}, {readxl}, {writexl} ...). They care about metadata, in particular, meaningful labels and units for the variables. Also, a mechanism to preprocess data sets using sidecar files, and to translate them into various languages are provided for a subset of R packages data sets.
20+
{data.io} main functions are `read()` and `write()`. They are made
21+
super-easy to import and export data in various formats in an unified
22+
way (they use functions from other packages under the hood like {haven},
23+
{readr}, {readxl}, {writexl} …). They care about metadata, in
24+
particular, meaningful labels and units for the variables. Also, a
25+
mechanism to preprocess data sets using sidecar files, and to translate
26+
them into various languages are provided for a subset of R packages data
27+
sets.
1028

1129
## Installation
1230

13-
{data.io} is not available from CRAN yet. You should install it from the [SciViews R-Universe](https://sciviews.r-universe.dev). To install this package and its dependencies, run the following command in R:
31+
{data.io} is not available from CRAN yet. You should install it from the
32+
[SciViews R-Universe](https://sciviews.r-universe.dev). To install this
33+
package and its dependencies, run the following command in R:
1434

15-
```{r, eval=FALSE}
35+
``` r
1636
install.packages('data.io', repos = c('https://sciviews.r-universe.dev',
1737
'https://cloud.r-project.org'))
1838
```
1939

20-
You can also install the latest development version. Make sure you have the {remotes} R package installed:
40+
You can also install the latest development version. Make sure you have
41+
the {remotes} R package installed:
2142

2243
``` r
2344
install.packages("remotes")
2445
```
2546

26-
Use `install_github()` to install the {data.io} package from Github (source from **main** branch will be recompiled on your machine):
47+
Use `install_github()` to install the {data.io} package from Github
48+
(source from **main** branch will be recompiled on your machine):
2749

2850
``` r
2951
remotes::install_github("SciViews/data.io")
3052
```
3153

32-
R should install all required dependencies automatically, and then it should compile and install {data.io}.
54+
R should install all required dependencies automatically, and then it
55+
should compile and install {data.io}.
3356

3457
## Further explore {data.io}
3558

36-
You can get further help about this package this way. Make the {data.io} package available in your R session:
59+
You can get further help about this package this way. Make the {data.io}
60+
package available in your R session:
3761

3862
``` r
3963
library("data.io")
@@ -47,8 +71,12 @@ help("data.io-package")
4771
vignette("data-io") # None is installed with install_github()
4872
```
4973

50-
For further instructions, please, refer to these help pages at <https://www.sciviews.org/data.io/>.
74+
For further instructions, please, refer to these help pages at
75+
<https://www.sciviews.org/data.io/>.
5176

5277
## Code of Conduct
5378

54-
Please note that the {data.io} package is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
79+
Please note that the {data.io} package is released with a [Contributor
80+
Code of
81+
Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html).
82+
By contributing to this project, you agree to abide by its terms.

inst/figures/data.io.png

-27.1 KB
Binary file not shown.

man/data.io-package.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Loading

man/figures/lifecycle-stable.svg

Lines changed: 29 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)