Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for data repositories #1

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
2d000ec
add a non exported meta() function which prepares the vectors for sto…
ThierryO Jul 23, 2018
03d8f6d
Add write_delim_git()
ThierryO Jul 23, 2018
ec2b5fd
Add read_delim_git()
ThierryO Jul 23, 2018
e2d0e0e
write_delim_git() and read_delim_git() handle directories with dots c…
ThierryO Jul 23, 2018
ecbf3f4
repository() gains a "project" argument
ThierryO Jul 23, 2018
9086194
write_delim_git() and read_delim_git() use the project concept
ThierryO Jul 23, 2018
18b38bb
init() and clone() gain the "project" argument
ThierryO Jul 23, 2018
7b490df
export meta()
ThierryO Jul 23, 2018
a19f3a3
workdir() takes "project" into account when set
ThierryO Jul 23, 2018
66817dc
move meta() and read_delim_git() and use 4 spaces per tab
ThierryO Jul 23, 2018
7dfa131
write_delim_git() stages the files
ThierryO Jul 23, 2018
ebcc9c8
status() takes "project" into account
ThierryO Jul 23, 2018
a9349ca
rm_file() handles data repos
ThierryO Jul 24, 2018
6cf0737
add is_data_repo()
ThierryO Jul 24, 2018
3bfceb9
Fix typo
ThierryO Jul 24, 2018
cdb3e81
reset() handles data repositories
ThierryO Jul 24, 2018
57df033
fix bugs
ThierryO Jul 24, 2018
8b90f13
add unit tests for data repositories
ThierryO Jul 24, 2018
8566c41
Create a "data_repository" class
ThierryO Jul 25, 2018
50df269
write_delim_git() maintains order of variables
ThierryO Jul 25, 2018
886979f
write_delim_git() sorts the data prior to writing
ThierryO Jul 25, 2018
2f24fcb
update unit tests
ThierryO Jul 25, 2018
edf9ee7
rm_file() can delete all .tsv. or all .yml files
ThierryO Jul 25, 2018
84c96f9
meta.character() checks for 'NA' values
ThierryO Jul 26, 2018
1599206
allow the storage of logicals in data repositories
ThierryO Jul 26, 2018
091f9b0
data repositories handle complex data
ThierryO Jul 26, 2018
b550898
data repositories handle POSIXct timestamps
ThierryO Jul 26, 2018
98514f1
add draft version of vignette
ThierryO Jul 26, 2018
a60c248
write_delim_git() yields a warning in case of duplicate observations …
ThierryO Jul 27, 2018
c220999
don't return the call with data_repository errors
ThierryO Jul 27, 2018
205d3f3
More work on the vignette
ThierryO Jul 27, 2018
6da3722
write_delim_git() returns the hashes of the files
ThierryO Jul 27, 2018
cbf21f1
data repositories handles the Date class
ThierryO Jul 27, 2018
6a5341d
Vignette & rm_file documentation: fix typos & language
florisvdh Aug 14, 2018
d20537f
Vignette: copy over explanation from the rm_file documentation
florisvdh Aug 14, 2018
04b8ca0
Vignette: replace 'format' by 'extension'
florisvdh Aug 14, 2018
1ae9f9c
write_delim_git() and read_delim_git() work with "git_repository" ins…
ThierryO Aug 20, 2018
dea6be9
remove the data_repository class
ThierryO Aug 20, 2018
5281e40
add rm_data()
ThierryO Aug 20, 2018
42bddcd
update vignette
ThierryO Aug 20, 2018
cbc9829
write_delim_git() gains a stage argument
ThierryO Aug 21, 2018
f476e18
write_delim_git() gains a optimize argument
ThierryO Aug 21, 2018
d78f9f1
revert unneeded changes
ThierryO Aug 21, 2018
ee881ca
Add more unit tests
ThierryO Aug 22, 2018
3fe6a6f
More work on the vignette
ThierryO Aug 22, 2018
d26aaf9
bugfixes
ThierryO Aug 22, 2018
24dc997
use file.exists() instead of dir.exists()
ThierryO Aug 22, 2018
51c4d7e
fix typos
ThierryO Aug 24, 2018
fa8cddb
add recent_commit()
ThierryO Aug 29, 2018
1ddbb14
try to debug unit test on recent_commit()
ThierryO Aug 29, 2018
b427175
use forward slashes when normalising path
ThierryO Aug 29, 2018
b748146
clean_data_path() gains a normalize argument
ThierryO Aug 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ openssl.zip
/src/zlib/
local320.zip
.Rproj.user
windows
windows
inst/doc
4 changes: 4 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Imports:
Depends:
R (>= 3.1)
Suggests:
knitr,
rmarkdown,
getPass
Type: Package
LazyData: true
Expand All @@ -38,6 +40,7 @@ Collate:
'config.R'
'contributions.R'
'credential.R'
'data_repository.R'
'diff.R'
'fetch.R'
'git2r.R'
Expand Down Expand Up @@ -66,3 +69,4 @@ Collate:
'tree.R'
'when.R'
RoxygenNote: 6.0.1
VignetteBuilder: knitr
16 changes: 16 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ S3method(length,git_tree)
S3method(merge,character)
S3method(merge,git_branch)
S3method(merge,git_repository)
S3method(meta,Date)
S3method(meta,POSIXct)
S3method(meta,character)
S3method(meta,complex)
S3method(meta,factor)
S3method(meta,integer)
S3method(meta,logical)
S3method(meta,numeric)
S3method(plot,git_repository)
S3method(print,git_blob)
S3method(print,git_branch)
Expand Down Expand Up @@ -113,6 +121,7 @@ export(lookup)
export(ls_tree)
export(merge)
export(merge_base)
export(meta)
export(note_create)
export(note_default_ref)
export(note_remove)
Expand All @@ -123,6 +132,8 @@ export(parents)
export(pull)
export(punch_card)
export(push)
export(read_delim_git)
export(recent_commit)
export(references)
export(reflog)
export(remote_add)
Expand All @@ -136,6 +147,7 @@ export(repository)
export(repository_head)
export(reset)
export(revparse_single)
export(rm_data)
export(rm_file)
export(sha)
export(ssh_path)
Expand All @@ -152,6 +164,7 @@ export(tags)
export(tree)
export(when)
export(workdir)
export(write_delim_git)
importFrom(graphics,axis)
importFrom(graphics,barplot)
importFrom(graphics,par)
Expand All @@ -161,5 +174,8 @@ importFrom(graphics,symbols)
importFrom(graphics,title)
importFrom(utils,capture.output)
importFrom(utils,head)
importFrom(utils,read.table)
importFrom(utils,sessionInfo)
importFrom(utils,tail)
importFrom(utils,write.table)
useDynLib(git2r, .registration=TRUE)
Loading