Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03cabea

Browse files
committed
add CRAN changes to repo
1 parent7325a8d commit03cabea

14 files changed

+52
-24
lines changed

‎CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 1.0.5-3
2-
Date: 2024-05-20 21:23:46 UTC
3-
SHA:afc71d378ab49fa29ae1c6075d499f8249a80110
1+
Version: 1.0.5-5
2+
Date: 2024-11-15 04:06:48 UTC
3+
SHA:7325a8d2b58e7fb0dc6097572b4e20bd469e8dc5

‎DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description: Bindings for the 'Tabula' <https://tabula.technology/> 'Java'
77
journalism. It allows for automatic and manual table extraction, the latter
88
facilitated through a 'Shiny' interface, enabling manual areas selection\
99
with a computer mouse for data retrieval.
10-
Version: 1.0.5-4
10+
Version: 1.0.5-5
1111
Authors@R: c(
1212
person("Thomas J.", "Leeper",
1313
role = "aut",
@@ -57,4 +57,4 @@ SystemRequirements: Java (>= 7.0):
5757
openjdk@11 (brew)
5858
VignetteBuilder: knitr
5959
Encoding: UTF-8
60-
RoxygenNote: 7.3.1
60+
RoxygenNote: 7.3.2

‎NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#CHANGES TO tabulapdf 1.0.5-5
2+
3+
* Updated tests to use offline files.
4+
15
#CHANGES TO tabulapdf 1.0.5-4
26

37
* Faster Shiny interface (parts of PR#56,@jkeuskamp)

‎R/extract_metadata.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#' @examples
1212
#' # simple demo file
1313
#' f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
14-
#'
1514
#' extract_metadata(f)
1615
#' @seealso \code{\link{extract_tables}}, \code{\link{extract_areas}}, \code{\link{extract_text}}, \code{\link{split_pdf}}
1716
#' @importFrom rJava J new

‎R/extract_tables.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#' @examples
3737
#' # simple demo file
3838
#' f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
39-
#'
4039
#' # extract tables from only second page
4140
#' extract_tables(f, pages = 2)
4241
#' @seealso \code{\link{extract_areas}}, \code{\link{get_page_dims}}, \code{\link{make_thumbnails}}, \code{\link{split_pdf}}

‎R/extract_text.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
#' @examples
1515
#' # simple demo file
1616
#' f <- system.file("examples", "fortytwo.pdf", package = "tabulapdf")
17-
#'
18-
#' # extract all text
19-
#' extract_text(f)
20-
#'
17+
#'
2118
#' # extract all text from page 1 only
2219
#' extract_text(f, pages = 1)
23-
#'
20+
#'
2421
#' # extract text from selected area only
2522
#' extract_text(f, area = list(c(209.4, 140.5, 304.2, 500.8)))
2623
#' @seealso \code{\link{extract_tables}}, \code{\link{extract_areas}}, \code{\link{split_pdf}}

‎R/get_page_dims.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#' @examples
1616
#' # simple demo file
1717
#' f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
18-
#'
1918
#' get_n_pages(file = f)
2019
#' get_page_dims(f)
2120
#' @importFrom tools file_path_sans_ext

‎R/make_thumbnails.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
#' @examples
2626
#' # simple demo file
2727
#' f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
28-
#'
29-
#' make_thumbnails(f)
28+
#'
29+
#' # extract thumbnails from the first page
30+
#' make_thumbnails(f, page = 1)
3031
#' @importFrom tools file_path_sans_ext
3132
#' @importFrom rJava J new .jfloat
3233
#' @seealso \code{\link{extract_tables}}, \code{\link{extract_text}},

‎README.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ You need do this before installing rJava or attempting to use tabulapdf. More on
2929
[this](#installing-java-on-windows-with-chocolatey) and
3030
[troubleshooting](#troubleshooting) below.
3131

32-
tabulapdf isnotavailable on CRAN,but it can be installed from rOpenSci's
32+
tabulapdf is available on CRAN,and it can also be installed from rOpenSci's
3333
R-Universe:
3434
```r
35+
# either
36+
install.packages("tabulapdf")
37+
38+
# or
3539
install.packages("tabulapdf",repos= c("https://ropensci.r-universe.dev","https://cloud.r-project.org"))
3640
```
3741

‎README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ Java. You need do this before installing rJava or attempting to use
2121
tabulapdf. More on[this](#installing-java-on-windows-with-chocolatey)
2222
and[troubleshooting](#troubleshooting) below.
2323

24-
tabulapdf isnotavailable on CRAN,but it can be installed from
24+
tabulapdf is available on CRAN,and it can also be installed from
2525
rOpenSci’s R-Universe:
2626

2727
```r
28+
# either
29+
install.packages("tabulapdf")
30+
31+
# or
2832
install.packages("tabulapdf",repos= c("https://ropensci.r-universe.dev","https://cloud.r-project.org"))
2933
```
3034

@@ -113,6 +117,18 @@ directory before trying to install the package. This can be changed from
113117
ensure write permission by choosing “Run as administrator” when
114118
launching R (again, from the right-click context menu).
115119

120+
##Debugging
121+
122+
Load the package like this:
123+
124+
```r
125+
devtools::load_all()
126+
libname="/home/pacha/R/x86_64-pc-linux-gnu-library/4.4"
127+
pkgname="tabulapdf"
128+
rJava::.jpackage(pkgname,jars="*",lib.loc=libname)
129+
rJava::J("java.lang.System")$setProperty("java.awt.headless","true")
130+
```
131+
116132
##Meta
117133

118134
- Please[report any issues or

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp