Browse Source

initial commit

master
boB Rudis 5 years ago
parent
commit
eea9a4ffa0
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 23
      DESCRIPTION
  2. 3
      NAMESPACE
  3. 14
      R/htmlunitjars-package.R
  4. 21
      R/logging.r
  5. 5
      R/zzz.r
  6. 6
      README.Rmd
  7. 36
      docs/index.html
  8. BIN
      inst/java/commons-codec-1.8.jar
  9. BIN
      inst/java/commons-collections-3.2.1.jar
  10. BIN
      inst/java/commons-io-2.4.jar
  11. BIN
      inst/java/commons-lang3-3.1.jar
  12. BIN
      inst/java/commons-logging-1.1.3.jar
  13. BIN
      inst/java/cssparser-0.9.11.jar
  14. BIN
      inst/java/htmlunit-2.13.jar
  15. BIN
      inst/java/htmlunit-core-js-2.13.jar
  16. BIN
      inst/java/httpclient-4.3.1.jar
  17. BIN
      inst/java/httpcore-4.3.jar
  18. BIN
      inst/java/httpmime-4.3.1.jar
  19. BIN
      inst/java/jericho-html-3.3.jar
  20. BIN
      inst/java/jericho-html-3.4.jar
  21. BIN
      inst/java/jetty-http-8.1.12.v20130726.jar
  22. BIN
      inst/java/jetty-io-8.1.12.v20130726.jar
  23. BIN
      inst/java/jetty-util-8.1.12.v20130726.jar
  24. BIN
      inst/java/jetty-websocket-8.1.12.v20130726.jar
  25. BIN
      inst/java/junit-3.8.1.jar
  26. BIN
      inst/java/nekohtml-1.9.19.jar
  27. BIN
      inst/java/sac-1.3.jar
  28. BIN
      inst/java/serializer-2.7.1.jar
  29. BIN
      inst/java/xalan-2.7.1.jar
  30. BIN
      inst/java/xercesImpl-2.11.0.jar
  31. BIN
      inst/java/xml-apis-1.4.01.jar
  32. 7
      man/htmlunitjars.Rd
  33. 6
      tests/testthat/test-htmlunitjars.R
  34. 4
      tests/testthat/test-jerichojars.R

23
DESCRIPTION

@ -1,24 +1,23 @@
Package: htmlunitjars
Type: Package
Title: htmlunitjars title goes here otherwise CRAN checks fail
Version: 0.1.0
Title: Java Archive Wrapper Supporting the 'htmlunit' Package
Version: 2.33.0
Date: 2018-12-16
Authors@R: c(
person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5670-2640"))
person("Bob", "Rudis", role = c("aut", "cre"), email = "bob@rud.is")
)
Maintainer: Bob Rudis <bob@rud.is>
Description: A good description goes here otherwise CRAN checks fail.
URL: https://gitlab.com/hrbrmstr/htmlunitjars
BugReports: https://gitlab.com/hrbrmstr/htmlunitjars/issues
SystemRequirements: Java
Description: Contents of the 'HtmlUnit' & supporting Java archives <http://htmlunit.sourceforge.net/>.
Version number reflects the version number of the included 'JAR' file.
URL: https://github.com/hrbrmstr/htmlunitjars
BugReports: https://github.com/hrbrmstr/htmlunitjars/issues
License: Apache License 2.0 | file LICENSE
Encoding: UTF-8
License: AGPL
Suggests:
testthat,
covr
Depends:
R (>= 3.2.0)
Imports:
httr,
jsonlite
R (>= 3.2.0),
rJava
RoxygenNote: 6.1.1

3
NAMESPACE

@ -1,4 +1,3 @@
# Generated by roxygen2: do not edit by hand
import(httr)
importFrom(jsonlite,fromJSON)
import(rJava)

14
R/htmlunitjars-package.R

@ -1,12 +1,12 @@
#' ...
#'
#' - URL: <https://gitlab.com/hrbrmstr/htmlunitjars>
#' - BugReports: <https://gitlab.com/hrbrmstr/htmlunitjars/issues>
#'
# Java Archive Wrapper Supporting the 'htmlunit' Package
#'
#' Contents of the 'HtmlUnit' & supporting Java archives <http://htmlunit.sourceforge.net/>
#'
#' Library JavaDoc: <http://htmlunit.sourceforge.net/apidocs/index.html>
#'
#' @md
#' @name htmlunitjars
#' @docType package
#' @author Bob Rudis (bob@@rud.is)
#' @import httr
#' @importFrom jsonlite fromJSON
#' @import rJava
NULL

21
R/logging.r

@ -0,0 +1,21 @@
#' @title rJava logging
#' @description Toggle verbose rJava logging
#' @details This function turns off the somewhat verbose rJava logging, most of which is
#' uninformative. It is called automatically when tabulizer is attached via
#' \code{library()}, \code{require}, etc. To keep logging on, load the package
#' namespace using \code{requireNamespace("htmlunit")} and reference functions
#' in using fully qualified references.
#' @note This resets a global Java setting and may affect logging of other rJava operations,
#' requiring a restart of R.
#' @return `NULL`, invisibly.
#' @author Thomas J. Leeper <thosjleeper@@gmail.com>
#' @noRd
#' @md
#' @examples
#' \dontrun{
#' stop_logging()
#' }
stop_logging <- function() {
rJava::J("java.util.logging.LogManager")$getLogManager()$reset()
invisible(NULL)
}

5
R/zzz.r

@ -0,0 +1,5 @@
.onLoad <- function(libname, pkgname) {
rJava::.jpackage(pkgname, jars = "*", lib.loc = libname)
rJava::.jaddClassPath(dir(file.path(getwd(), "inst/java"), full.names = TRUE))
stop_logging()
}

6
README.Rmd

@ -4,11 +4,15 @@ output: rmarkdown::github_document
# htmlunitjars
Java Archive Wrapper Supporting the 'htmlunit' Package
## Description
Contents of the 'HtmlUnit' & supporting Java archives <http://htmlunit.sourceforge.net/>. Version number reflects the version number of the included 'JAR' file.
## What's Inside The Tin
The following functions are implemented:
Everything necessary to use the HtmlUnit library directly via `rJava`.
## Installation

36
docs/index.html

@ -0,0 +1,36 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<body>
<script>
function createTable(tableData) {
var table = document.createElement('table');
var row = {};
var cell = {};
tableData.forEach(function(rowData) {
row = table.insertRow(-1);
rowData.forEach(function(cellData) {
cell = row.insertCell();
cell.textContent = cellData;
});
});
document.body.appendChild(table);
}
createTable([
["One", "Two"],
["Three", "Four"],
["Five", "Six"]
]);
</script>
</body>
</html>

BIN
inst/java/commons-codec-1.8.jar

Binary file not shown.

BIN
inst/java/commons-collections-3.2.1.jar

Binary file not shown.

BIN
inst/java/commons-io-2.4.jar

Binary file not shown.

BIN
inst/java/commons-lang3-3.1.jar

Binary file not shown.

BIN
inst/java/commons-logging-1.1.3.jar

Binary file not shown.

BIN
inst/java/cssparser-0.9.11.jar

Binary file not shown.

BIN
inst/java/htmlunit-2.13.jar

Binary file not shown.

BIN
inst/java/htmlunit-core-js-2.13.jar

Binary file not shown.

BIN
inst/java/httpclient-4.3.1.jar

Binary file not shown.

BIN
inst/java/httpcore-4.3.jar

Binary file not shown.

BIN
inst/java/httpmime-4.3.1.jar

Binary file not shown.

BIN
inst/java/jericho-html-3.3.jar

Binary file not shown.

BIN
inst/java/jericho-html-3.4.jar

Binary file not shown.

BIN
inst/java/jetty-http-8.1.12.v20130726.jar

Binary file not shown.

BIN
inst/java/jetty-io-8.1.12.v20130726.jar

Binary file not shown.

BIN
inst/java/jetty-util-8.1.12.v20130726.jar

Binary file not shown.

BIN
inst/java/jetty-websocket-8.1.12.v20130726.jar

Binary file not shown.

BIN
inst/java/junit-3.8.1.jar

Binary file not shown.

BIN
inst/java/nekohtml-1.9.19.jar

Binary file not shown.

BIN
inst/java/sac-1.3.jar

Binary file not shown.

BIN
inst/java/serializer-2.7.1.jar

Binary file not shown.

BIN
inst/java/xalan-2.7.1.jar

Binary file not shown.

BIN
inst/java/xercesImpl-2.11.0.jar

Binary file not shown.

BIN
inst/java/xml-apis-1.4.01.jar

Binary file not shown.

7
man/htmlunitjars.Rd

@ -4,12 +4,9 @@
\name{htmlunitjars}
\alias{htmlunitjars}
\alias{htmlunitjars-package}
\title{...}
\title{Contents of the 'HtmlUnit' & supporting Java archives \url{http://htmlunit.sourceforge.net/}}
\description{
\itemize{
\item URL: \url{https://gitlab.com/hrbrmstr/htmlunitjars}
\item BugReports: \url{https://gitlab.com/hrbrmstr/htmlunitjars/issues}
}
Library JavaDoc: \url{http://htmlunit.sourceforge.net/apidocs/index.html}
}
\author{
Bob Rudis (bob@rud.is)

6
tests/testthat/test-htmlunitjars.R

@ -1,6 +0,0 @@
context("minimal package functionality")
test_that("we can do something", {
#expect_that(some_function(), is_a("data.frame"))
})

4
tests/testthat/test-jerichojars.R

@ -0,0 +1,4 @@
context("basic functionality")
test_that("we can do something", {
})
Loading…
Cancel
Save