Skip to content

Commit

Permalink
Fixed malformed citation and stopped running expensive lnt_diff example
Browse files Browse the repository at this point in the history
  • Loading branch information
JBGruber committed Apr 1, 2021
1 parent 80a319f commit 88f6537
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/LexisNexisTools.R
Original file line number Diff line number Diff line change
Expand Up @@ -1605,12 +1605,13 @@ lnt_lookup.character <- function(x,
#' @param ... Currently not used.
#'
#' @examples
#' \dontrun{
#' # Test similarity of articles
#' duplicates.df <- lnt_similarity(
#' LNToutput = lnt_read(lnt_sample(copy = FALSE)),
#' threshold = 0.97
#' )
#' \dontrun{
#'
#' lnt_diff(duplicates.df, min = 0.18, max = 0.30)
#' }
#' @author Johannes Gruber
Expand Down
3 changes: 2 additions & 1 deletion Update package.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ update_citation <- function() {

desc <- readLines("DESCRIPTION")
vers <- gsub("[^[:digit:].]", "", grep("^Version:", desc, value = TRUE))
cit[version] <- gsub("R package version (.*)", paste0("R package version ", vers), cit[version])
vers <- gsub(".9000$", "", vers)
cit[version] <- gsub("R package version (.*)", paste0("R package version ", vers, "\""), cit[version])

y <- gsub(".*(\\d{4}).*", "\\1", grep("^Date:", desc, value = TRUE))
cit[year] <- paste0(" year = ", y, ",")
Expand Down
2 changes: 1 addition & 1 deletion inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ bibentry(bibtype = "Manual",
author = as.person("Johannes Gruber"),
year = 2021,
url = "https://github.com/JBGruber/LexisNexisTools",
note = "R package version 0.3.3.9000
note = "R package version 0.3.3"
)
3 changes: 2 additions & 1 deletion man/lnt_diff.Rd

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

0 comments on commit 88f6537

Please sign in to comment.