xfun 0.48
-
Added utilities for HTML tags:
html_tag()
,html_escape()
,html_escape()
, andhtml_view()
. Removed the soft dependency on the htmltools package accordingly. -
base_pkgs()
is faster now: it callstools::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 viamime::guess_type()
if mime is installed, otherwise it will calltools:::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 withfile.rename()
failures by callingfile.copy()
(thanks, @Giqles @katrinabrock, rstudio/bookdown#804). -
new_app()
will useutils::browseURL()
to open the app ifoptions('viewer')
is not configured (thanks, @AlbertLei, yihui/litedown#29). -
Added a method
record_print.record_asis()
to return the object as is.