Skip to content

Commit

Permalink
Rename process.bib->process.bibfile and process.internal->process.entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Arni Magnusson committed Apr 4, 2020
1 parent b3c2998 commit 2e87368
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export(os.windows)
export(parse.repo)
export(period)
export(plus)
export(process.bib)
export(process.inner)
export(process.bibfile)
export(process.entry)
export(read.taf)
export(rmdir)
export(rnd)
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ icesTAF 3.4-0 (2020-03-27)
a special value, similar to source = {file}. Warn if source = {owner/repo@ref}
entry is missing the '@ref' part.

* Renamed internal function process.bib() to process.bibfile() and
process.inner() to process.entry().




Expand Down
4 changes: 2 additions & 2 deletions R/process.bib.R → R/process.bibfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Process *.bib file

process.bib <- function(bibfile, clean=TRUE, quiet=FALSE)
process.bibfile <- function(bibfile, clean=TRUE, quiet=FALSE)
{
if(!quiet)
message("Processing ", bibfile)
Expand Down Expand Up @@ -65,7 +65,7 @@ process.bib <- function(bibfile, clean=TRUE, quiet=FALSE)
file.path(type, key) else type
mkdir(dir) # target directory

process.inner(bib, dir, quiet)
process.entry(bib, dir, quiet)
}

invisible(TRUE)
Expand Down
2 changes: 1 addition & 1 deletion R/process.inner.R → R/process.entry.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Process bib entry

process.inner <- function(bib, dir, quiet)
process.entry <- function(bib, dir, quiet)
{
key <- attr(bib, "key")

Expand Down
5 changes: 3 additions & 2 deletions R/taf.bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ taf.bootstrap <- function(software=TRUE, data=TRUE, clean=TRUE, quiet=FALSE,
## 1 Process software
if(software && file.exists("SOFTWARE.bib"))
{
out["SOFTWARE.bib"] <- process.bib("SOFTWARE.bib", clean=clean, quiet=quiet)
out["SOFTWARE.bib"] <- process.bibfile("SOFTWARE.bib",
clean=clean, quiet=quiet)
}

## 2 Process data
if(data && file.exists("DATA.bib"))
{
out["DATA.bib"] <- process.bib("DATA.bib", clean=clean, quiet=quiet)
out["DATA.bib"] <- process.bibfile("DATA.bib", clean=clean, quiet=quiet)
}

## Remove empty folders
Expand Down
14 changes: 7 additions & 7 deletions man/icesTAF-internal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2e87368

Please sign in to comment.