Skip to content

Commit

Permalink
R-xfun: Autospec creation for update from version 0.43 to version 0.44
Browse files Browse the repository at this point in the history
Yihui Xie (63):
      start the next version
      simply let the handler() function use location info (`loc`) directly without adding `at lines`
      add 'at lines' to the error messages only in csv_options() and yaml_load()
      inline output values
      a line that starts with 3 or more backticks followed by spaces and backticks is not a code block fence
      re-wrap roxygen comments
      let write_utf8() return the output path (the previous returned value `NULL` is rarely useful)
      ignore rhub before R 4.0.0
      prose_index() should also take raw HTML <pre></pre> into consideration
      don't include the `yaml` component in the returned value of yaml_body() if YAML metadata is not found in the input
      55575cd248536e76fc2c26bd939bb4385d18c98b was buggy; shouldn't add fences to <pre>, because <pre> might be inside fences already
      deal with an edge case when no plots were generated in the code but the device (e.g., pdf()) will generate a non-empty plot file on dev.off(); in this case, we should just delete the plot file
      prism-xcode.css has been moved to yihui/misc.js
      move find_globals()'s tests from knitr to xfun
      rename md5_obj() to md5() and export it
      always add a space after the fence if the attributes are not empty (this might be a "breaking" change if anyone is testing the Markdown output precisely, although the space is meaningless to Markdown)
      no need to record plots if no device was opened
      don't change the original cache_rds() function, although it will be less useful than the new cache_run()
      add a function cache_exec(), which can be seen as a generalized version of cache_rds()
      support caching in record()
      use a fixed path by default for the dev.path argument in record() to avoid littering the working directory with random plot files
      handle errors via options(error) instead of withCallingHandlers() to make it possible to call globalCallingHandlers(): yihui/knitr#2324
      factor out the code to merge neighbor elements in record()
      add arguments `message` and `warning` to record(), and change the `error `argument
      add a custom printing function record_print() for record() to print visible values
      declare dependency on the methods package
      provide the environment to find_globals()
      make sure `function` can be found (in baseenv())
      provide a helper function record_class() for record_print() methods to return types of output recognized by record() (e.g., source, asis, plot, message, etc)
      add an S3 method for knitr::kable()
      rename record_class() to record_new()
      forgot to document the argument `class`
      allow record_print() methods to return lists of records
      rename record_new() to new_record()
      define %||% only for R < 4.4.0
      add line numbers of YAML to the result of yaml_body()
      rename api.R to app.R
      add a function new_app() based R's internal httpd server (for hackers only), i.e., no dependency on third-party packages
      maintain the working directory for the handler
      add a function to open any path
      make sure to close sink() before closing the text connection
      add a shorthand function fenced_div()
      add a function md_table() as a bare minimal Markdown table generator
      add arguments `print` and `print.args` to record()
      escape pipes in the input
      document the global option xfun.md_table.digits
      add an argument `limit` to limit the number of rows/columns in the table
      let record_print() methods handle table caption instead
      forgot options()
      move the S3 method to litedown instead
      should get the class of out$value instead of out
      the caption argument has been removed
      use vertical ellipsis to denote omitted rows
      default values of all md_table() arguments can be set via options()
      use lazy-loading for local variables in code, i.e., load them from cache only when they are used in the future
      don't rely on the error option because users may change it; instead, just use a simple boolean variable to check if the expr can run successfully
      no need to assign to a new variable
      include the cache method name in the cache file paths, so we can switch between different methods without invalidating other methods' cache (e.g., for comparison purpose)
      don't touch the cache from other methods during cleaning up
      remove the `skip` argument of split_source(), which was originally for servr::httr() to skip code (for speed purpose), but I'll provide a better implementation in litedown later without having to skip code
      a temporary workaround to avoid breaking one of knitr's tests
      don't use \Sexpr
      CRAN release v0.44
  • Loading branch information
fenrus75 committed May 15, 2024
1 parent ad8692c commit 9397bec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME := R-xfun
URL = https://cran.r-project.org/src/contrib/xfun_0.43.tar.gz
URL = https://cran.r-project.org/src/contrib/xfun_0.44.tar.gz
ARCHIVES =

include ../common/Makefile.common
17 changes: 9 additions & 8 deletions R-xfun.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
# Using build pattern: R
# autospec version: v5
# autospec commit: c02b2fe
# autospec version: v10
# autospec commit: 5905be9
#
Name : R-xfun
Version : 0.43
Release : 80
URL : https://cran.r-project.org/src/contrib/xfun_0.43.tar.gz
Source0 : https://cran.r-project.org/src/contrib/xfun_0.43.tar.gz
Version : 0.44
Release : 81
URL : https://cran.r-project.org/src/contrib/xfun_0.44.tar.gz
Source0 : https://cran.r-project.org/src/contrib/xfun_0.44.tar.gz
Summary : Supporting Functions for Packages Maintained by 'Yihui Xie'
Group : Development/Tools
License : MIT
Expand Down Expand Up @@ -44,10 +44,10 @@ export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1711510692
export SOURCE_DATE_EPOCH=1715789176

%install
export SOURCE_DATE_EPOCH=1711510692
export SOURCE_DATE_EPOCH=1715789176
rm -rf %{buildroot}
LANG=C.UTF-8
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -O3 -flto -fno-semantic-interposition "
Expand Down Expand Up @@ -125,6 +125,7 @@ R CMD check --no-manual --no-examples --no-codoc . || :
/usr/lib64/R/library/xfun/scripts/call-fun.R
/usr/lib64/R/library/xfun/scripts/child-pids.sh
/usr/lib64/R/library/xfun/tests/test-ci.R
/usr/lib64/R/library/xfun/tests/test-ci/test-cache.R
/usr/lib64/R/library/xfun/tests/test-ci/test-cran.R
/usr/lib64/R/library/xfun/tests/test-ci/test-revcheck.R
/usr/lib64/R/library/xfun/tests/test-cran.R
Expand Down
2 changes: 1 addition & 1 deletion options.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = R-xfun
url = https://cran.r-project.org/src/contrib/xfun_0.43.tar.gz
url = https://cran.r-project.org/src/contrib/xfun_0.44.tar.gz
archives =
giturl = https://github.com/yihui/xfun.git
domain =
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80
81
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
42775eb45c72c6030be324117c17ce17c8a67224/xfun_0.43.tar.gz
44b45a81bd535d902df5e95a575bab0476ac7565/xfun_0.44.tar.gz

0 comments on commit 9397bec

Please sign in to comment.