./textproc/R-htmltools, Tools for HTML

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.5.4, Package name: R-htmltools-0.5.4, Maintainer: minskim

Tools for HTML generation and output.


Required to run:
[math/R] [devel/R-Rcpp] [security/R-digest]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)


Version history: (Expand)


CVS history: (Expand)


   2023-03-12 06:40:48 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(textproc/R-htmltools) Updated 0.5.2 to 0.5 4

# htmltools 0.5.4

## New Features

* Added  a   new  `bindFillRole()`  function  for   modifying  `tag()`
  object(s) into tags  that are allowed to grow and  shrink when their
  parent is  opinionated about  their height.  See `help(bindFillRole,
  "htmltools")`  for  documentation  and examples.  Note  the  primary
  motivation for  adding these functions  is to power  `{bslib}`'s new
  `card()`        API        (in        particular,        [responsive
  sizing](https://rstudio.github.io/bslib/articles/cards.html#responsive-sizing))
  as  well  as  the  new `fill`  arguments  in  `shiny::plotOutput()`,
  `shiny::imageOutput()`,                         `shiny::uiOutput()`,
  `htmlwidgets::sizingPolicy()`,                                   and
  `htmlwidgets::shinyWidgetOutput()`. (#343)

## Bug fixes

* Closed #331: `copyDependencyToDir()` creates `outputDir`
  recursively, which happens in Quarto or when `lib_dir` points to a
  nested directory. (@gadenbuie, #332)

* Closed #346: `tagQuery()`'s `$remove()`, `$after()`, `$before()`,
  `$replaceWith()` had a bug that prevented expected behavior when
  sibling children values where not tag elements. (#348)

# htmltools 0.5.3

## Breaking changes

* Closed #305: `htmlPreserve()` no longer uses _inline_ code blocks
  for Pandoc's raw attribute feature when used inside a _non_-inline
  knitr/rmarkdown code chunk, and as a result, in this case, an
  additional `<p>` tag is no longer wrapped around the HTML
  content. (#306)

## Bug fixes

* Closed #301: `tagQuery()` was failing to copy all `tagList()` html
  dependencies within nest child tag lists. `tagQuery()` will now
  relocate html dependencies as child objects. (#302)

* Closed #290: htmltools previously did not specify which version of
  fastmap to use, and would fail to install with an old version of
  fastmap. (#291)

* `copyDependencyToDir()` no longer creates empty directories for
  dependencies that do not have any files. (@gadenbuie, #276)

* Closed #320: `copyDependencyToDir()` now works with dependencies
  with specified attributes. (@dmurdoch, #321)
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2021-09-06 23:52:11 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(textproc/R-htmltools)) Add missing DEPENDS to R-fastmap
   2021-06-07 01:48:13 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(textproc/R-htmltools) Add missing DEPENDS (R-rlang)
   2021-06-06 17:40:28 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(textproc/R-htmltools) Add missing one DEPENDS
   2021-06-05 10:02:32 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
^(textproc/R-htmltools) Updated 0.3.6 to 0.5.1.1

htmltools 0.5.1.1
--------------------------------------------------------------------------------

* Added shiny as a suggested package.

htmltools 0.5.1
--------------------------------------------------------------------------------

## New Features & Improvements

* Added a new `tagFunction()` for generating `tags` and/or
  `htmlDependency()`s conditional on the rendering context. For an
  example, see `?tagFunction`. (#180)

* Closed #104: `save_html()`'s `file` argument now properly handles
  relative paths. (@haozhu233, #105, #192)

* `save_html()` now has a `lang` parameter that can be used to set the
  lang attribute of `<html>`. (@ColinFay, #185)

* Closed #101: `htmlDependency` & `renderDependencies` now allow the
  `script` argument to be given as a named list containing the
  elements: `src`, `integrity`, `crossorigin`. (@matthewstrasiotto,
  #188)

* Closed #189: `validateCssUnit()` now accepts `fit-content`. (#190)

* `htmlPreserve()` can now optionally use the Pandoc `raw_attribute`
  extension to enclose HTML.

## Breaking Changes

* Closed #161: `parseCssColors(x)` now requires `x` to be a character
  vector (it no longer accepts a `list()` of strings) and an error is
  no longer thrown when `mustWork = FALSE` and `x` contains `NA`
  value(s). (#194)

## Bug fixes

* `print(as.tags(x))` no longer results in error when `x` is a generic
  `list()` of tag-like objects. (#181)

htmltools 0.5.0
--------------------------------------------------------------------------------

* `tags` is now generated by a script which collects all
  [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) and
  [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG/Element) element tags
  documented in [MDN Web Docs](https://developer.mozilla.org).  This feature
  only appends to the existing set of `tags` (#159)

* Removed the Rcpp depedency and the compiled code now uses C rather than C++ (#158)

* BREAKING CHANGE: Fixed #57, #153: `htmlTemplate` output no longer inserts
  extra whitespace around {{...}} replacement values. (#154)

* `HTML()` now takes `.noWS` argument, which can be used to suppress surrounding
  whitespace (similar to the new argument for tags in htmltools 0.4.0). (#154)

* `css()` now returns `NULL` instead of `""` when no non-empty \ 
properties are
  specified. (#145)

* `save_html(tags$body(...))` no longer results in double <body> tags being
  written to the .html file. (Note that `save_html(tags$html(...))` is not
  supported at this time.) (#145)

* Trailing commas now permited in `...` arguments to `css()`, `tagList()`, and
  the var-arg mutation functions: `tagAppendAttributes()`, `tagSetChildren()`,
  and `tagAppendChildren()`. (#145)

* Added `capturePlot` and `plotTag` functions, for easily creating image files
  and HTML <img> tags (respectively) from plot expressions. (#150)

* Added `parseCssColors` function, for normalizing the various CSS
  color formats into #RRGGBB(AA) strings. (#155)

* Fixed #156: Now `extractPreserveChunks()` handles strings contain
  Emoji Unicode strings correctly on Windows. (#157)

* The `.noWS` parameter for suppressing whitespace can now take an \ 
`"inside"`
  value (equivalent to `c("after-start", "before-end")`). (#163)

htmltools 0.4.0
--------------------------------------------------------------------------------

* Fixed #128: Added support for trailing commas in tagLists and the predefined
  tags. (#135)

* Added some HTML tag functions to `tags` that were missing. (#111)

* Updated RcppExports for new version of Rcpp. (#93)

* `as.character.shiny.tags()` will handle non-ASCII attributes correctly if they
  are not encoded in native encoding.

* Fixed #99: `NA` attributes were sometimes rendered as `"NA"` in the HTML,
  instead of being blank. (#100)

* The error message for trailing commas in tag functions now provides context
  and useful information. (#109)

* Stopped using inline styles to set background color for `save_html`, as doing so
  makes it difficult to override using other CSS rules. (#123)

* Added a `.noWS` argument to `tag()` and `tags` which can be used to suppress
  the automatically generated whitespace around a particular tag. (#131)

* Added a shim for `system.file()` so that htmltools works with `htmlDependency`
  objects created by a package that was loaded with `devtools::load_all()`.
  (#129)

* `validateCssUnit()` now accepts `ch`, `rem`, and `calc()`. (#134)

* Fixed #125: `print.html` removes html dependencies. (#126)

* Stopped extra carriage returns from being inserted by `save_html` on Windows.
  (#137)
   2019-08-08 21:53:58 by Brook Milligan | Files touched by this commit (189) | Package updated
Log message:
Update all R packages to canonical form.

The canonical form [1] of an R package Makefile includes the
following:

- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
  needed), and CATEGORIES.

- HOMEPAGE is not present but defined in math/R/Makefile.extension to
  refer to the CRAN web page describing the package.  Other relevant
  web pages are often linked from there via the URL field.

This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.

[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html