diff --git a/.Rbuildignore b/.Rbuildignore index 4e10fcd..349bb7a 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,4 @@ ^README\.html$ ^cran-comments\.md$ ^appveyor\.yml$ +^docs$ diff --git a/NEWS.md b/NEWS.md index 2f52b59..6442653 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,13 +1,13 @@ -# htmltidy 0.3.0 - +htmltidy 0.3.0 +==================== * Better error handling (fixed crashing bug in #1) * New option to display document errors * Support for directly tidying httr::response objects * Added XML/HTML viewer & XPath query widgets -# htmltidy 0.2.0 - +htmltidy 0.2.0 +==================== * Bundled tidy-html5 library with the package * Windows compatibility * Options handling @@ -15,8 +15,8 @@ * Modified tests -# htmltidy 0.1.0 - +htmltidy 0.1.0 +==================== * Added a `NEWS.md` file to track changes to the package. * Added Debian & Ubuntu compatibility * Added basic error checking diff --git a/R/xmltreeview.R b/R/xmltreeview.R index 4a4df4f..8a34fe3 100644 --- a/R/xmltreeview.R +++ b/R/xmltreeview.R @@ -19,8 +19,8 @@ #' or used in a browser context vs an IDE viewer context. #' @export #' @references \href{https://github.com/juliangruber/xml-viewer}{xml-viewer} -#' @examples \dontrun{ -#' library(htmltidy) +#' @examples +#' if (interactive()) { #' #' # from ?xml2::read_xml #' cd <- xml2::read_xml("http://www.xmlfiles.com/examples/cd_catalog.xml") diff --git a/R/xmlview.R b/R/xmlview.R index be6551e..116e207 100644 --- a/R/xmlview.R +++ b/R/xmlview.R @@ -27,7 +27,8 @@ #' @export #' @references \href{https://highlightjs.org/}{highlight.js}, #' \href{http://www.eslinstructor.net/vkbeautify/}{vkbeautify} -#' @examples \dontrun{ +#' @examples +#' if (interactive()) { #' library(xml2) #' #' # plain text diff --git a/cran-comments.md b/cran-comments.md index efe9d58..74bc984 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -10,17 +10,13 @@ 0 errors | 0 warnings | 2 notes -* This is a new release. -* XHTML is a valid and widely used acronym - -This is a new release, so there are no reverse dependencies. - --- This fixes a fairly nasty bug that was user-identfied fairly early after release but I didn't want to bug the CRAN team -so quickly after the CRAN acceptange. This -also addes new functionality and (optionally) +so quickly after the CRAN acceptance. This +also addes new functionality (widgets for +viewing & querying XML/HTML) and (optionally) provides more informaiton on the tidying -process. +process. diff --git a/man/xml_tree_view.Rd b/man/xml_tree_view.Rd index d0a9f22..87f3d73 100644 --- a/man/xml_tree_view.Rd +++ b/man/xml_tree_view.Rd @@ -38,8 +38,7 @@ Large HTML or XML content may take some time to render properly. It is suggested or used in a browser context vs an IDE viewer context. } \examples{ -\dontrun{ -library(htmltidy) +if (interactive()) { # from ?xml2::read_xml cd <- xml2::read_xml("http://www.xmlfiles.com/examples/cd_catalog.xml") diff --git a/man/xml_view.Rd b/man/xml_view.Rd index 37f2595..549c3ad 100644 --- a/man/xml_view.Rd +++ b/man/xml_view.Rd @@ -48,7 +48,7 @@ Large HTML or XML content may take some time to render properly. It is suggested or used in a browser context vs an IDE viewer context. } \examples{ -\dontrun{ +if (interactive()) { library(xml2) # plain text