Skip to content

Commit 96b83cd

Browse files
authored
🔖Version 0.5.1 (#82)
2 parents ad37387 + ed0358f commit 96b83cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2443
-1108
lines changed

.github/workflows/check_on_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
permissions:
1818
contents: read
1919
steps:
20-
- uses: inbo/actions/check_pkg@checklist-0.4.1
20+
- uses: inbo/actions/check_pkg@main

.github/workflows/check_on_different_r_os.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
config:
2323
- {os: macOS-latest, r: 'release'}
2424
- {os: windows-latest, r: 'release'}
25-
- {os: ubuntu-22.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
26-
- {os: ubuntu-22.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
25+
- {os: ubuntu-24.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
26+
- {os: ubuntu-24.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"}
2727

2828
env:
2929
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true

.github/workflows/check_on_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
19-
- uses: inbo/actions/check_pkg@checklist-0.4.1
19+
- uses: inbo/actions/check_pkg@main

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1+
!source/**/_extensions/**
2+
*.[rR][dD]ata
3+
*.[rR]ds
14
*.dbf
25
*.doc*
6+
*.eps
37
*.gddoc
48
*.gdsheet
59
*.gpkg
610
*.html
711
*.mdb
12+
*.pdf
813
*.shp*
914
*.shx
15+
*.sty
16+
*.tex
1017
*.xls*
18+
*_cache
1119
*_files
20+
*_freeze
21+
*_libs
1222
.DS_Store
1323
.RData
1424
.Renviron
1525
.Rhistory
1626
.Rproj.user
1727
.Ruserdata
1828
.httr-oauth
29+
.quarto
1930
Meta
2031
doc
2132
docs

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "git2rdata: Store and Retrieve Data.frames in a Git Repository",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"license": "GPL-3.0",
55
"upload_type": "software",
66
"description": "<p>The git2rdata package is an R package for writing and reading dataframes as plain text files. A metadata file stores important information. 1) Storing metadata allows to maintain the classes of variables. By default, git2rdata optimizes the data for file storage. The optimization is most effective on data containing factors. The optimization makes the data less human readable. The user can turn this off when they prefer a human readable format over smaller files. Details on the implementation are available in vignette(“plain_text”, package = “git2rdata”). 2) Storing metadata also allows smaller row based diffs between two consecutive commits. This is a useful feature when storing data as plain text files under version control. Details on this part of the implementation are available in vignette(“version_control”, package = “git2rdata”). Although we envisioned git2rdata with a git workflow in mind, you can use it in combination with other version control systems like subversion or mercurial. 3) git2rdata is a useful tool in a reproducible and traceable workflow. vignette(“workflow”, package = “git2rdata”) gives a toy example. 4) vignette(“efficiency”, package = “git2rdata”) provides some insight into the efficiency of file storage, git repository size and speed for writing and reading.<\/p>",

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ identifiers:
4040
value: 10.5281/zenodo.1485309
4141
- type: url
4242
value: https://ropensci.github.io/git2rdata/
43-
version: 0.5.0
43+
version: 0.5.1

DESCRIPTION

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: git2rdata
22
Title: Store and Retrieve Data.frames in a Git Repository
3-
Version: 0.5.0
3+
Version: 0.5.1
44
Authors@R: c(
55
person("Thierry", "Onkelinx", , "thierry.onkelinx@inbo.be", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-8804-4216", affiliation = "Research Institute for Nature and Forest (INBO)")),
@@ -10,7 +10,8 @@ Authors@R: c(
1010
comment = c(ORCID = "0000-0002-8442-8025", affiliation = "Research Institute for Nature and Forest (INBO)")),
1111
person("Els", "Lommelen", , "els.lommelen@inbo.be", role = "ctb",
1212
comment = c(ORCID = "0000-0002-3481-5684", affiliation = "Research Institute for Nature and Forest (INBO)")),
13-
person("Research Institute for Nature and Forest (INBO)", , , "info@inbo.be", role = c("cph", "fnd"))
13+
person("Research Institute for Nature and Forest (INBO)", , , "info@inbo.be", role = c("cph", "fnd"),
14+
comment = c(ROR = "https://ror.org/00j54wy13"))
1415
)
1516
Description: The git2rdata package is an R package for writing and reading
1617
dataframes as plain text files. A metadata file stores important
@@ -58,7 +59,7 @@ Config/checklist/keywords: git; version control; plain text data
5859
Encoding: UTF-8
5960
Language: en-GB
6061
Roxygen: list(markdown = TRUE)
61-
RoxygenNote: 7.3.2
62+
RoxygenNote: 7.3.3
6263
Collate:
6364
'clean_data_path.R'
6465
'data_package.R'
@@ -75,6 +76,7 @@ Collate:
7576
'read_vc.R'
7677
'recent_commit.R'
7778
'reexport.R'
79+
'reinstate.R'
7880
'relabel.R'
7981
'rename_variable.R'
8082
'update_metadata.R'

NAMESPACE

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ importFrom(assertthat,is.flag)
8080
importFrom(assertthat,is.string)
8181
importFrom(assertthat,noNA)
8282
importFrom(git2r,add)
83+
importFrom(git2r,blame)
8384
importFrom(git2r,commit)
85+
importFrom(git2r,commits)
8486
importFrom(git2r,hash)
85-
importFrom(git2r,last_commit)
86-
importFrom(git2r,odb_blobs)
8787
importFrom(git2r,pull)
8888
importFrom(git2r,push)
8989
importFrom(git2r,repository)
@@ -93,6 +93,7 @@ importFrom(methods,setOldClass)
9393
importFrom(stats,setNames)
9494
importFrom(utils,file_test)
9595
importFrom(utils,flush.console)
96+
importFrom(utils,head)
9697
importFrom(utils,packageVersion)
9798
importFrom(utils,read.table)
9899
importFrom(utils,write.table)

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# git2rdata 0.5.1
2+
3+
* `write_vc()` stores metadata stored in the data frame.
4+
* `read_vc()` returns more metadata.
5+
* `read_vc()` can handle empty factors.
6+
* `recent_commit()` now returns handles multiple commits within the same second.
7+
18
# git2rdata 0.5.0
29

310
* `read_vc()` handles empty datasets stored with `split_by`.

R/clean_data_path.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ clean_data_path <- function(root, file, normalize = TRUE) {
1212
assert_that(is.flag(normalize), noNA(normalize))
1313
dir_name <- dirname(file)
1414
assert_that(
15-
length(grep("\\.\\.", dir_name)) == 0, msg = "file should not contain '..'"
15+
length(grep("\\.\\.", dir_name)) == 0,
16+
msg = "file should not contain '..'"
1617
)
1718

1819
file <- gsub("\\..*$", "", basename(file))

0 commit comments

Comments
 (0)