~hrbrmstr/htmlunitjars

eea9a4ffa090850f62aac2c529903100aa14103a — boB Rudis 5 years ago ec9bec0
initial commit
M DESCRIPTION => DESCRIPTION +11 -12
@@ 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

M NAMESPACE => NAMESPACE +1 -2
@@ 1,4 1,3 @@
# Generated by roxygen2: do not edit by hand

import(httr)
importFrom(jsonlite,fromJSON)
import(rJava)

M R/htmlunitjars-package.R => R/htmlunitjars-package.R +7 -7
@@ 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

A R/logging.r => R/logging.r +21 -0
@@ 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)
}
\ No newline at end of file

A R/zzz.r => R/zzz.r +5 -0
@@ 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()
}

M README.Rmd => README.Rmd +5 -1
@@ 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


A docs/index.html => docs/index.html +36 -0
@@ 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>
\ No newline at end of file

A inst/java/commons-codec-1.8.jar => inst/java/commons-codec-1.8.jar +0 -0
A inst/java/commons-collections-3.2.1.jar => inst/java/commons-collections-3.2.1.jar +0 -0
A inst/java/commons-io-2.4.jar => inst/java/commons-io-2.4.jar +0 -0
A inst/java/commons-lang3-3.1.jar => inst/java/commons-lang3-3.1.jar +0 -0
A inst/java/commons-logging-1.1.3.jar => inst/java/commons-logging-1.1.3.jar +0 -0
A inst/java/cssparser-0.9.11.jar => inst/java/cssparser-0.9.11.jar +0 -0
A inst/java/htmlunit-2.13.jar => inst/java/htmlunit-2.13.jar +0 -0
A inst/java/htmlunit-core-js-2.13.jar => inst/java/htmlunit-core-js-2.13.jar +0 -0
A inst/java/httpclient-4.3.1.jar => inst/java/httpclient-4.3.1.jar +0 -0
A inst/java/httpcore-4.3.jar => inst/java/httpcore-4.3.jar +0 -0
A inst/java/httpmime-4.3.1.jar => inst/java/httpmime-4.3.1.jar +0 -0
A inst/java/jericho-html-3.3.jar => inst/java/jericho-html-3.3.jar +0 -0
A inst/java/jericho-html-3.4.jar => inst/java/jericho-html-3.4.jar +0 -0
A inst/java/jetty-http-8.1.12.v20130726.jar => inst/java/jetty-http-8.1.12.v20130726.jar +0 -0
A inst/java/jetty-io-8.1.12.v20130726.jar => inst/java/jetty-io-8.1.12.v20130726.jar +0 -0
A inst/java/jetty-util-8.1.12.v20130726.jar => inst/java/jetty-util-8.1.12.v20130726.jar +0 -0
A inst/java/jetty-websocket-8.1.12.v20130726.jar => inst/java/jetty-websocket-8.1.12.v20130726.jar +0 -0
A inst/java/junit-3.8.1.jar => inst/java/junit-3.8.1.jar +0 -0
A inst/java/nekohtml-1.9.19.jar => inst/java/nekohtml-1.9.19.jar +0 -0
A inst/java/sac-1.3.jar => inst/java/sac-1.3.jar +0 -0
A inst/java/serializer-2.7.1.jar => inst/java/serializer-2.7.1.jar +0 -0
A inst/java/xalan-2.7.1.jar => inst/java/xalan-2.7.1.jar +0 -0
A inst/java/xercesImpl-2.11.0.jar => inst/java/xercesImpl-2.11.0.jar +0 -0
A inst/java/xml-apis-1.4.01.jar => inst/java/xml-apis-1.4.01.jar +0 -0
M man/htmlunitjars.Rd => man/htmlunitjars.Rd +2 -5
@@ 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)

R tests/testthat/test-htmlunitjars.R => tests/testthat/test-jerichojars.R +1 -3
@@ 1,6 1,4 @@
context("minimal package functionality")
context("basic functionality")
test_that("we can do something", {

  #expect_that(some_function(), is_a("data.frame"))

})