Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
remove not used pdfs, dont rbuildignore .xml example file, fixes as.f…
Browse files Browse the repository at this point in the history
…t_data eg cause xml file was being ignored
  • Loading branch information
sckott committed Jan 22, 2019
1 parent 6eeb625 commit 58f0643
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ vignettes/margins.sty
.Rhistory
CONTRIBUTING.md
README.Rmd
^.*\.xml
^CODE_OF_CONDUCT\.md$
^cran-comments\.md$
^revdep$
Expand Down
4 changes: 3 additions & 1 deletion R/as.ft_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' # put a file in the cache in case there aren't any
#' dir <- file.path(tempdir(), "testing")
#' dir.create(dir)
#' file <- system.file("examples/elife.xml", package = "fulltext")
#' file <- system.file("examples", "elife.xml", package = "fulltext")
#' writeLines(readLines(file), tempfile(tmpdir = dir, fileext = ".xml"))
#'
#' # call as.ft_data
Expand All @@ -30,12 +30,14 @@
#' # representing already present files
#' x$cached
#'
#' \dontrun{
#' # collect chunks
#' if (requireNamespace("pubchunks")) {
#' library(pubchunks)
#' res <- ft_collect(x)
#' pub_chunks(res, c("doi", "title")) %>% pub_tabularize()
#' }
#' }
as.ft_data <- function(path = NULL) {
if (is.null(path)) path <- ftxt_cache$cache_path_get()
if (!dir.exists(path)) stop("path does not exist")
Expand Down
Binary file removed inst/examples/example3.pdf
Binary file not shown.
Binary file removed inst/examples/example4.pdf
Binary file not shown.
Binary file removed inst/examples/example5.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion man/as.ft_data.Rd

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

0 comments on commit 58f0643

Please sign in to comment.