Skip to content

Commit

Permalink
move helper fn to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 22, 2018
1 parent 85987bc commit aae9041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions R/parse_citation.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ parse_citation <- function(bib){
out
}

drop_null <- function(x){
x[lapply(x,length)!=0]
}

## guessCitation referencePublication or citation?

Expand Down
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
drop_null <- function(x){
x[lapply(x,length)!=0]
}


#' @importFrom utils installed.packages
get_root_path <- function(pkg){
Expand Down

0 comments on commit aae9041

Please sign in to comment.