Skip to content

Commit

Permalink
internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
trangdata committed Nov 13, 2024
1 parent bf9bc71 commit a358002
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/oa2df.R
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ works2df <- function(data, abstract = TRUE, verbose = TRUE,
#' @param build Logical. If TRUE, build the abstract.
#'
#' @return Character string. The abstract of the paper.
#' @keywords internal
abstract_build <- function(ab, build = TRUE) {
if (is.null(ab) || !build) {
return(NULL)
Expand All @@ -255,7 +256,7 @@ abstract_build <- function(ab, build = TRUE) {
#'
#' @return List. A list of one dataframe with the processed authors:
#' id, display_name, orcid, author_position, is_corresponding, affiliations, affiliation_raw
#'
#' @keywords internal
process_paper_authors <- function(authorships){
if (is.null(authorships)) {
return(NULL)
Expand Down Expand Up @@ -292,7 +293,7 @@ process_paper_authors <- function(authorships){
#'
#' @return Dataframe of with the following columns:
#' id, display_name, ror, country_code, type, lineage
#'
#' @keywords internal
process_affil <- function(l_institution){
if (!length(l_institution)){
return(list(empty_df()))
Expand Down
1 change: 1 addition & 0 deletions man/abstract_build.Rd

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

1 change: 1 addition & 0 deletions man/process_affil.Rd

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

1 change: 1 addition & 0 deletions man/process_paper_authors.Rd

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

0 comments on commit a358002

Please sign in to comment.