From a0c99b36cde0bf041fdd21610a4a5a93a786ffe5 Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Fri, 4 Oct 2019 08:14:07 -0400 Subject: [PATCH] coverage --- .Rbuildignore | 1 + DESCRIPTION | 3 ++- README.md | 4 +++- codecov.yml | 12 ++++++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index dd4fa88..fab038f 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -8,3 +8,4 @@ ^appveyor\.yml$ ^docs$ ^CRAN-RELEASE$ +^codecov\.yml$ diff --git a/DESCRIPTION b/DESCRIPTION index 4027920..c3baf02 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -46,7 +46,8 @@ NeedsCompilation: yes Suggests: testthat, httr, - rvest + rvest, + covr LinkingTo: Rcpp Imports: Rcpp, diff --git a/README.md b/README.md index 46156a8..ecab4f9 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ collapseable tree view. ## Installation ``` r +install.packages("htmltidy", repos = "https://cinc.rud.is") +# or remotes::install_git("https://git.rud.is/hrbrmstr/htmltidy.git") # or remotes::install_git("https://git.sr.ht/~hrbrmstr/htmltidy") @@ -306,7 +308,7 @@ sum(map_int(book, nchar)) ## [1] 207501 system.time(tidy_book <- tidy_html(book)) ## user system elapsed -## 0.02 0.00 0.02 +## 0.019 0.000 0.019 ``` (It’s usually between 20 & 25 milliseconds to process those 202 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..8f36b6c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +comment: false + +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + threshold: 1%