diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000..451a4dd --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,13 @@ +^.*\.Rproj$ +^\.Rproj\.user$ +^\.travis\.yml$ +^README\.*Rmd$ +^README\.*html$ +^NOTES\.*Rmd$ +^NOTES\.*html$ +^\.codecov\.yml$ +^README_files$ +^doc$ +^tmp$ +^notes$ +^\.gitlab-ci\.yml$ diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..69cb760 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1 @@ +comment: false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cce1f17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.DS_Store +.Rproj.user +.Rhistory +.RData +.Rproj +src/*.o +src/*.so +src/*.dll diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f93993f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: R +sudo: false +cache: packages + +after_success: +- Rscript -e 'covr::codecov()' diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000..1cc26a5 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,24 @@ +Package: htmlunit +Type: Package +Title: htmlunit title goes here otherwise CRAN checks fail +Version: 0.1.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")) + ) +Maintainer: Bob Rudis +Description: A good description goes here otherwise CRAN checks fail. +URL: https://gitlab.com/hrbrmstr/htmlunit +BugReports: https://gitlab.com/hrbrmstr/htmlunit/issues +Encoding: UTF-8 +License: AGPL +Suggests: + testthat, + covr +Depends: + R (>= 3.2.0) +Imports: + httr, + jsonlite +RoxygenNote: 6.1.1 diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000..5b4b9ae --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,4 @@ +# Generated by roxygen2: do not edit by hand + +import(httr) +importFrom(jsonlite,fromJSON) diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..9b4679b --- /dev/null +++ b/NEWS.md @@ -0,0 +1,2 @@ +0.1.0 +* Initial release diff --git a/R/htmlunit-package.R b/R/htmlunit-package.R new file mode 100644 index 0000000..6ea4cb4 --- /dev/null +++ b/R/htmlunit-package.R @@ -0,0 +1,12 @@ +#' ... +#' +#' - URL: +#' - BugReports: +#' +#' @md +#' @name htmlunit +#' @docType package +#' @author Bob Rudis (bob@@rud.is) +#' @import httr +#' @importFrom jsonlite fromJSON +NULL diff --git a/README.Rmd b/README.Rmd new file mode 100644 index 0000000..624ed06 --- /dev/null +++ b/README.Rmd @@ -0,0 +1,32 @@ +--- +output: rmarkdown::github_document +--- + +# htmlunit + +## Description + +## What's Inside The Tin + +The following functions are implemented: + +## Installation + +```{r eval=FALSE} +devtools::install_github("hrbrmstr/htmlunit") +``` + +```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE} +options(width=120) +``` + +## Usage + +```{r message=FALSE, warning=FALSE, error=FALSE} +library(htmlunit) + +# current verison +packageVersion("htmlunit") + +``` + diff --git a/htmlunit.Rproj b/htmlunit.Rproj new file mode 100644 index 0000000..446d9e1 --- /dev/null +++ b/htmlunit.Rproj @@ -0,0 +1,21 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +StripTrailingWhitespace: Yes + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source +PackageBuildArgs: --resave-data +PackageRoxygenize: rd,collate,namespace diff --git a/man/htmlunit.Rd b/man/htmlunit.Rd new file mode 100644 index 0000000..64c05ea --- /dev/null +++ b/man/htmlunit.Rd @@ -0,0 +1,16 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/htmlunit-package.R +\docType{package} +\name{htmlunit} +\alias{htmlunit} +\alias{htmlunit-package} +\title{...} +\description{ +\itemize{ +\item URL: \url{https://gitlab.com/hrbrmstr/htmlunit} +\item BugReports: \url{https://gitlab.com/hrbrmstr/htmlunit/issues} +} +} +\author{ +Bob Rudis (bob@rud.is) +} diff --git a/tests/test-all.R b/tests/test-all.R new file mode 100644 index 0000000..3413f4f --- /dev/null +++ b/tests/test-all.R @@ -0,0 +1,2 @@ +library(testthat) +test_check("htmlunit") diff --git a/tests/testthat/test-htmlunit.R b/tests/testthat/test-htmlunit.R new file mode 100644 index 0000000..0c22968 --- /dev/null +++ b/tests/testthat/test-htmlunit.R @@ -0,0 +1,6 @@ +context("minimal package functionality") +test_that("we can do something", { + + #expect_that(some_function(), is_a("data.frame")) + +})