Skip to content

xfun 0.48

Latest
Compare
Choose a tag to compare
@yihui yihui released this 03 Oct 23:54
· 12 commits to main since this release
  • Added utilities for HTML tags: html_tag(), html_escape(), html_escape(), and html_view(). Removed the soft dependency on the htmltools package accordingly.

  • base_pkgs() is faster now: it calls tools::standard_package_names() if the function exists (R >= 4.4.0), otherwise it just returns a constant vector of base package names (thanks, @arnaudgallou, #91).

  • Added a function mime_type() to obtain the MIME types of files via mime::guess_type() if mime is installed, otherwise it will call tools:::mime_type(), and fall back to using a system command (e.g., file --mime-type) to obtain the types.

  • Added a function file_rename() to deal with file.rename() failures by calling file.copy() (thanks, @Giqles @katrinabrock, rstudio/bookdown#804).

  • new_app() will use utils::browseURL() to open the app if options('viewer') is not configured (thanks, @AlbertLei, yihui/litedown#29).

  • Added a method record_print.record_asis() to return the object as is.