66# ' @export
77# ' @importFrom stringr str_remove_all regex str_trim
88# ' @importFrom kwb.utils catAndRun
9- clean_dois <- function (dois , dbg = TRUE ) {
9+ clean_dois <- function (dois , dbg = TRUE )
10+ {
1011 remove <- stringr :: str_remove_all
1112
1213 kwb.utils :: catAndRun(" Clean 'DOI'" , dbg = dbg , expr = {
@@ -28,8 +29,8 @@ clean_dois <- function(dois, dbg = TRUE) {
2829# ' @export
2930# ' @importFrom stringr str_remove_all str_replace_all regex str_trim
3031# ' @importFrom kwb.utils catAndRun
31- clean_project_names <- function (
32- project_names , give_hints = FALSE , dbg = TRUE ) {
32+ clean_project_names <- function (project_names , give_hints = FALSE , dbg = TRUE )
33+ {
3334 kwb.utils :: catAndRun(" Clean 'Project Names'" , dbg = dbg , expr = {
3435 project_names <- project_names %> %
3536 stringr :: str_replace_all(" \\ s+?/" , " ," ) %> %
@@ -68,8 +69,8 @@ if (FALSE) {
6869# ' @return vector with cleaned author names
6970# ' @export
7071# ' @importFrom kwb.utils catAndRun
71- clean_author_names <- function (
72- author_names , give_hints = FALSE , dbg = TRUE ) {
72+ clean_author_names <- function (author_names , give_hints = FALSE , dbg = TRUE )
73+ {
7374 kwb.utils :: catAndRun(
7475 " No cleaning of author_names implemented yet. Only hints are generated in
7576 case that user defines 'give_hints = TRUE' (default: FALSE)" ,
@@ -94,8 +95,8 @@ clean_author_names <- function(
9495# ' @return vector with cleaned accessibility information
9596# ' @export
9697# ' @importFrom stringr str_remove_all str_replace_all regex str_trim
97- clean_accessibility <- function (
98- access , give_hints = FALSE , dbg = TRUE ) {
98+ clean_accessibility <- function (access , give_hints = FALSE , dbg = TRUE )
99+ {
99100 replace_all <- function (string , pattern , replacement ) {
100101 stringr :: str_replace_all(
101102 string = string ,
@@ -133,7 +134,8 @@ clean_accessibility <- function(
133134# ' refs_clean_df <- clean_references_df(endnote_list)
134135# ' head(refs_clean_df)
135136# ' }
136- clean_references_df <- function (endnote_list , give_hints = FALSE , dbg = TRUE ) {
137+ clean_references_df <- function (endnote_list , give_hints = FALSE , dbg = TRUE )
138+ {
137139 refs_df <- create_references_df(endnote_list , collapse = TRUE )
138140
139141 refs_df <- kwb.utils :: catAndRun(
0 commit comments