Skip to content

Commit

Permalink
replaced gsub by trimws
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Feb 19, 2019
1 parent 7244572 commit 6feab12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/misc_cite_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ show_packages <- function(session) {
i <- i + 1
}

citation <- gsub(" ", " ", trimws(gsub("\\s", " ", gsub("SPLIT", "", citation[i])), which="both"))
citation <- gsub(" ", " ", trimws(gsub("SPLIT", "", citation[i]), which="both"))

citations <- c(citations, citation)
versions <- c(versions, as.character(packageVersion(pkg_name)))
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ knitr::kable(table)

If you like it, you can put a **star** on this repo, and cite the package as following:

- Makowski, D. \& Lüdecke, D. (2019). *Automated reporting of statistical models in R*. CRAN. doi: .
- Makowski, D. \& Lüdecke, D. (2019). *The report package for R: Ensuring the use of best practices for results reporting*. CRAN. doi: .
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bibentry(
bibtype="Article",
title="Automated reporting of statistical models in R",
title="The report package for R: Ensuring the use of best practices for results reporting",
author="Makowski, Dominique and Lüdecke, Daniel",
journal="CRAN",
doi="",
Expand All @@ -9,7 +9,7 @@ bibentry(
url="https://github.com/easystats/report",

textVersion =
paste("Makowski, D. & Lüdecke, D. (2019). Automated reporting of statistical models in R. CRAN.",
paste("Makowski, D. & Lüdecke, D. (2019). The report package for R: Ensuring the use of best practices for results reporting. CRAN.",
"Available from https://github.com/easystats/report.",
"doi: .",
sep=" "),
Expand Down

0 comments on commit 6feab12

Please sign in to comment.