Browse Source

CRAN

master
boB Rudis 5 years ago
parent
commit
d0eced1e31
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      .Rbuildignore
  2. 3
      .travis.yml
  3. 2
      CRAN-RELEASE
  4. 12
      README.Rmd
  5. 7
      README.md
  6. 6
      cran-comments.md

4
.Rbuildignore

@ -1,10 +1,10 @@
^.*\.Rproj$ ^.*\.Rproj$
^\.Rproj\.user$ ^\.Rproj\.user$
^README\.Rmd$ ^README.*$
^README-.*\.png$
^\.travis\.yml$ ^\.travis\.yml$
^CONDUCT\.md$ ^CONDUCT\.md$
^README\.html$ ^README\.html$
^cran-comments\.md$ ^cran-comments\.md$
^appveyor\.yml$ ^appveyor\.yml$
^docs$ ^docs$
^CRAN-RELEASE$

3
.travis.yml

@ -6,3 +6,6 @@ r:
- oldrel - oldrel
- release - release
- devel - devel
after_success:
- Rscript -e 'covr::codecov()'

2
CRAN-RELEASE

@ -0,0 +1,2 @@
This package was submitted to CRAN on 2019-10-03.
Once it is accepted, delete this file and tag the release (commit c2eb514aa7).

12
README.Rmd

@ -90,8 +90,20 @@ tidy_html(content(res, as="raw"))
tidy_html(content(res, as="text", encoding="UTF-8")) tidy_html(content(res, as="text", encoding="UTF-8"))
tidy_html(content(res, as="parsed", encoding="UTF-8")) tidy_html(content(res, as="parsed", encoding="UTF-8"))
```
```{r raw-02, eval=FALSE}
tidy_html(suppressWarnings(htmlParse("https://rud.is/test/untidy.html"))) tidy_html(suppressWarnings(htmlParse("https://rud.is/test/untidy.html")))
## <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
## <html xmlns="http://www.w3.org/1999/xhtml">
## <head>
## <meta name="generator" content="HTML Tidy for HTML5 for R version 5.0.0">
## <title></title>
## </head>
## <body>
## <p>https://rud.is/test/untidy.html</p>
## </body>
## </html>
``` ```
And, show the markup errors: And, show the markup errors:

7
README.md

@ -223,7 +223,9 @@ tidy_html(content(res, as="parsed", encoding="UTF-8"))
## <html xmlns="http://www.w3.org/1999/xhtml"> ## <html xmlns="http://www.w3.org/1999/xhtml">
## [1] <head>\n<meta name="generator" content="HTML Tidy for HTML5 for R version 5.0.0">\n<meta http-equiv="Content-Type ... ## [1] <head>\n<meta name="generator" content="HTML Tidy for HTML5 for R version 5.0.0">\n<meta http-equiv="Content-Type ...
## [2] <body>\n<b>This is some <i>really</i> poorly formatted HTML as is this\n<span id="sp">portion</span></b>\n<div><s ... ## [2] <body>\n<b>This is some <i>really</i> poorly formatted HTML as is this\n<span id="sp">portion</span></b>\n<div><s ...
```
``` r
tidy_html(suppressWarnings(htmlParse("https://rud.is/test/untidy.html"))) tidy_html(suppressWarnings(htmlParse("https://rud.is/test/untidy.html")))
## <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ## <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
## <html xmlns="http://www.w3.org/1999/xhtml"> ## <html xmlns="http://www.w3.org/1999/xhtml">
@ -235,7 +237,6 @@ tidy_html(suppressWarnings(htmlParse("https://rud.is/test/untidy.html")))
## <p>https://rud.is/test/untidy.html</p> ## <p>https://rud.is/test/untidy.html</p>
## </body> ## </body>
## </html> ## </html>
##
``` ```
And, show the markup errors: And, show the markup errors:
@ -305,7 +306,7 @@ sum(map_int(book, nchar))
## [1] 207501 ## [1] 207501
system.time(tidy_book <- tidy_html(book)) system.time(tidy_book <- tidy_html(book))
## user system elapsed ## user system elapsed
## 0.019 0.000 0.019 ## 0.02 0.00 0.02
``` ```
(It’s usually between 20 & 25 milliseconds to process those 202 (It’s usually between 20 & 25 milliseconds to process those 202
@ -319,7 +320,7 @@ kilobytes of HTML.) Not too shabby.
| C/C++ Header | 37 | 0.47 | 5796 | 0.16 | 1227 | 0.20 | 2677 | 0.36 | | C/C++ Header | 37 | 0.47 | 5796 | 0.16 | 1227 | 0.20 | 2677 | 0.36 |
| C++ | 4 | 0.05 | 647 | 0.02 | 117 | 0.02 | 64 | 0.01 | | C++ | 4 | 0.05 | 647 | 0.02 | 117 | 0.02 | 64 | 0.01 |
| R | 10 | 0.13 | 151 | 0.00 | 38 | 0.01 | 235 | 0.03 | | R | 10 | 0.13 | 151 | 0.00 | 38 | 0.01 | 235 | 0.03 |
| Rmd | 1 | 0.01 | 47 | 0.00 | 44 | 0.01 | 70 | 0.01 | | Rmd | 1 | 0.01 | 47 | 0.00 | 44 | 0.01 | 82 | 0.01 |
## Code of Conduct ## Code of Conduct

6
cran-comments.md

@ -2,9 +2,13 @@
* local OS X install, R 3.6.1 * local OS X install, R 3.6.1
* ubuntu 14.04 (on travis-ci), R 3.6.1 * ubuntu 14.04 (on travis-ci), R 3.6.1
* win-builder (devel and release) * win-builder (devel and release)
* r-hub fedora, debian, windows
## R CMD check results ## R CMD check results
0 errors | 0 warnings | 1 note 0 errors | 0 warnings | 1 note
* This is a new release. * This is a update/fix release.
- updates the core included C library
- fixes the CRAN check issues identified by Kurt

Loading…
Cancel
Save