pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/R-xfun
Module Name: pkgsrc
Committed By: mef
Date: Sat Oct 26 05:45:17 UTC 2024
Modified Files:
pkgsrc/devel/R-xfun: Makefile distinfo
Log Message:
(devel/R-xfun) Updated 0.42 to 0.48
# CHANGES IN xfun VERSION 0.48
- 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.
# CHANGES IN xfun VERSION 0.47
- Added functions `lazy_save()` and `lazy_load()` to save objects to
files and lazy-load them.
- Fixed a bug in `record(dev = svglite::svglite)` that misplaced plots
when low-level plot functions are used (thanks, @liao961120,
yihui/litedown#17).
- Specified the lowest R version required (v3.2.0) for this package.
# CHANGES IN xfun VERSION 0.46
- `md_table()` should add a vertical ellipsis to row names when rows
are truncated by the `limit` argument.
- `session_info()` recognizes Positron now (thanks, @chuxinyuan, #89).
# CHANGES IN xfun VERSION 0.45
- For `record()` with `verbose = 1` or `2`, invisible `NULL` is no
longer printed.
- `Rscript_call()` will show the actual error message (if an error
occurred) during calling the function in a new R session.
# CHANGES IN xfun VERSION 0.44
- Added a function `cache_exec()` to cache the execution of an
expression either in memory or on disk. It is much more general and
flexible than `cache_rds()`. For example, it supports custom
reading/writing methods for cache files, and can load locally
created variables in the expression while loading cache.
- Added an argument `cache` to `record()` to make it possible to enable caching.
- Added arguments `message` and `warning` to `record()` to decide
whether messages and warnings should be recorded.
- Changed the default value of the argument `error` of `record()` from
`FALSE` to `NA`. Now `FALSE` means to suppress error messages, and
`NA` means to throw errors normally. This is for consistency with
the `message` and `warning` arguments.
- Added an S3 generic function `record_print()`, which is similar to
`knitr::knit_print()` but for the purpose of printing visible values
in `record()`.
- The `record()` function gained new arguments `print` and
`print.args` to support custom printing functions and arguments.
- Added a function `md_table()`, which is a minimal Markdown table
generator.
- Exported the internal function `md5()` to calculate the MD5
checksums of R objects. The function is essentially a workaround for
`tools::md5sum()` (see HenrikBengtsson/Wishlist-for-R#21).
- For `fenced_block()`, a space is added between the backticks and the
language name, e.g., ```` ```r ```` has become ```` ``` r ````
now. This will affect snapshot tests based on Markdown ([an
example](https://github.com/yihui/knitr-examples/commit/931e0a2)).
- Added a shorthand `fenced_div()` for `fenced_block(char = ':')`.
- `write_utf8()` returns the `con` argument (typically a file path)
now. Previously, it returns `NULL`.
- Added an experimental function `new_app()` to create a local web application.
- The returned value of `yaml_body()` contains a new element `lines`
in the list indicating the line numbers of YAML metadata if exists.
- Removed the `skip` argument from `split_source()`.
- For `split_source(line_number = TRUE)`, the attribute name for line
numbers in the returned value was changed from `line_start` (a
single starting line number) to `lines` (both the starting and
ending numbers).
- Fixed an edge case in `prose_index()`, in which inline code was
incorrectly recognized as a code block fence.
# CHANGES IN xfun VERSION 0.43
- Added a function `upload_imgur()`, which was adapted from
`knitr::imgur_upload()`. The latter will call the former in the
future. `xfun::upload_imgur()` allows users to choose whether to use
the system command `curl` or the R package **curl** to upload the
image. It also has a new argument `include_xml` to specify whether
the XML response needs to be included in the returned value.
- Added a function `fenced_block()` to create a fenced block in
Markdown (thanks, @cderv, yihui/knitr#2331). The block can be either
a code block or a fenced Div.
- Fixed a bug in `xfun::record()` when the argument `verbose = 1` or `2`.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/R-xfun/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/R-xfun/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/R-xfun/Makefile
diff -u pkgsrc/devel/R-xfun/Makefile:1.20 pkgsrc/devel/R-xfun/Makefile:1.21
--- pkgsrc/devel/R-xfun/Makefile:1.20 Sun Feb 18 14:22:58 2024
+++ pkgsrc/devel/R-xfun/Makefile Sat Oct 26 05:45:17 2024
@@ -1,15 +1,17 @@
-# $NetBSD: Makefile,v 1.20 2024/02/18 14:22:58 mef Exp $
+# $NetBSD: Makefile,v 1.21 2024/10/26 05:45:17 mef Exp $
R_PKGNAME= xfun
-R_PKGVER= 0.42
+R_PKGVER= 0.48
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= Miscellaneous functions by 'Yihui Xie'
LICENSE= mit
-# Packages suggested but not available: 'rhub', 'magick'
-TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
+# Packages suggested but not available: 'litedown', 'rhub', 'magick', 'qs'
+# VignetteBuilder package required for checking but not installed: 'litedown'
+
+TEST_DEPENDS+= R-knitr>=1.47:../../print/R-knitr
TEST_DEPENDS+= R-pak-[0-9]*:../../devel/R-pak
TEST_DEPENDS+= R-remotes-[0-9]*:../../devel/R-remotes
TEST_DEPENDS+= R-renv-[0-9]*:../../devel/R-renv
Index: pkgsrc/devel/R-xfun/distinfo
diff -u pkgsrc/devel/R-xfun/distinfo:1.18 pkgsrc/devel/R-xfun/distinfo:1.19
--- pkgsrc/devel/R-xfun/distinfo:1.18 Sun Feb 18 14:22:58 2024
+++ pkgsrc/devel/R-xfun/distinfo Sat Oct 26 05:45:17 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2024/02/18 14:22:58 mef Exp $
+$NetBSD: distinfo,v 1.19 2024/10/26 05:45:17 mef Exp $
-BLAKE2s (R/xfun_0.42.tar.gz) = 43bb219e85121976fe8b906bf3d00b010af0358a0125ffc3b8d21064162db990
-SHA512 (R/xfun_0.42.tar.gz) = 7a7e776166d62f93ffb9ebee37b81de357a2bd67541afe9f10d687888676740486110575719ba95f89369cacaede81717c61da5bcfe59a09b77a582654ecc4d7
-Size (R/xfun_0.42.tar.gz) = 142598 bytes
+BLAKE2s (R/xfun_0.48.tar.gz) = a9e6b65fcb328db3d279760b5cf1796e335323a5aaa84095d61204ced1c363f5
+SHA512 (R/xfun_0.48.tar.gz) = 20f08fae73cdc837d07f5427f7031c7ba2a40f8b36baa24cfe3e29ea0c3f65916f0de5729f6e9b90cb945b619a3ede22eb9be7413e89f079062e7a6b7d9036cd
+Size (R/xfun_0.48.tar.gz) = 164959 bytes
Home |
Main Index |
Thread Index |
Old Index