Up to [cvs.NetBSD.org] / pkgsrc / textproc / R-formatR
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.9 / (download) - annotate - [select for diffs], Sat Jun 3 13:51:56 2023 UTC (3 months, 3 weeks ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
HEAD
Changes since 1.8: +4 -4
lines
Diff to previous 1.8 (colored)
(textproc/R-foramtR) Updated 1.11 to 1.14 https://github.com/yihui/formatR/releases/ 1.14 - tidy_source() supports the := operator now (which is widely used in data.table). 1.13 - tidy_source() supports anonymous functions of the form \(args) expr for R >= 4.1.0 now (thanks, @notPlancha, #98). 1.12 - Added a new argument pipe to tidy_source(). If pipe = TRUE, it will convert the magrittr pipe %>% to the base R pipe operator |>. - Added a function tidy_rstudio() to reformat R code in the RStudio editor. - Added a function tidy_pipe() to substitute %>% with |> (currently works only in RStudio).
Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 26 11:21:30 2021 UTC (23 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
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
Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 7 15:00:36 2021 UTC (23 months, 3 weeks ago) by nia
Branch: MAIN
Changes since 1.6: +1 -2
lines
Diff to previous 1.6 (colored)
textproc: Remove SHA1 hashes for distfiles
Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 4 12:45:01 2021 UTC (2 years ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base,
pkgsrc-2021Q3
Changes since 1.5: +5 -5
lines
Diff to previous 1.5 (colored)
(textproc/R-formatR) Updated 1.7 to 1.11 (from https://github.com/yihui/formatR/releases/tag/v1.11 etc) v1.11 @yihui yihui released this Jun 1, 2021 ? 1 commit to master since this release * The right arrow assignment operator -> is supported now. * Added a new argument args.newline to formatR::tidy_source(). When set to TRUE, function arguments can start on a new line, e.g., shiny::updateSelectizeInput(session, "foo", label = "New Label", selected = c("A", "B"), choices = LETTERS, server = TRUE) can be reformatted to: shiny::updateSelectizeInput( session, "foo", label = "New Label", selected = c("A", "B"), choices = LETTERS, server = TRUE ) formatR 1.10 @yihui yihui released this May 25, 2021 ? 13 commits to master since this release * Support the new pipe operator |> in R 4.1.0. * The width.cutoff argument works more accurately when comments are indented (thanks, @iqis, #92). Previously, width.cutoff did not take the indentation or the number of # characters in a comment when wrapping it, which may lead to wrapped comment lines that are wider than width.cutoff. formatR 1.9 @yihui yihui released this Apr 14, 2021 ? 19 commits to master since this release NEW FEATURES * Lines will be wrapped after operators %>%, %T%, %$%, and %<>% now (thanks, @g4challenge #54, @jzelner #62, @edlee123 #68). * The argument width.cutoff of tidy_source() used to be the lower bound of line widths. Now if you pass a number wrapped in I(), it will be treated as the uppper bound, e.g., tidy_source(width.cutoff = I(60)). However, please note that the upper bound cannot always be respected, e.g., when the code contains an extremely long string, there is no way to break it into shorter lines automatically (thanks, @krivit @pablo14, #71). * The value of the argument width.cutoff can be specified in the global option formatR.width now. By default, the value is still taken from the global option width like before. BUG FIXES * When the text in the clipboard on macOS does not have a final EOL, tidy_source() fails to read the last line (thanks, @edlee123, #54). formatR 1.8 @yihui yihui released this Mar 13, 2021 ? 53 commits to master since this release * White spaces on blank lines are removed now (thanks, @nylander, #88). * This package requires R >= 3.2.3 now.
Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 31 20:48:51 2019 UTC (4 years, 2 months ago) by brook
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4,
pkgsrc-2019Q3-base,
pkgsrc-2019Q3
Changes since 1.4: +5 -5
lines
Diff to previous 1.4 (colored)
R-formatR: update to version 1.7. Update to the canonical form of an R package and fix the LICENSE field.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 18 02:39:05 2016 UTC (6 years, 9 months ago) by wen
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base,
pkgsrc-2019Q2,
pkgsrc-2019Q1-base,
pkgsrc-2019Q1,
pkgsrc-2018Q4-base,
pkgsrc-2018Q4,
pkgsrc-2018Q3-base,
pkgsrc-2018Q3,
pkgsrc-2018Q2-base,
pkgsrc-2018Q2,
pkgsrc-2018Q1-base,
pkgsrc-2018Q1,
pkgsrc-2017Q4-base,
pkgsrc-2017Q4,
pkgsrc-2017Q3-base,
pkgsrc-2017Q3,
pkgsrc-2017Q2-base,
pkgsrc-2017Q2,
pkgsrc-2017Q1-base,
pkgsrc-2017Q1,
pkgsrc-2016Q4-base,
pkgsrc-2016Q4
Changes since 1.3: +5 -5
lines
Diff to previous 1.3 (colored)
Update to 1.4 Upstream changes: CHANGES IN formatR VERSION 1.4 NEW FEATURES o `tidy_source()` can preserve line breaks in character strings in source code MAJOR CHANGES o the deprecated functions tidy.source(), tidy.dir(), and tidy.eval() have been removed; use tidy_source(), tidy_dir() and tidy_eval() instead o comments that begin with `#+` or `#-` are no longer wrapped; such comments are treated as knitr chunk options in `knitr::spin()` (#52) BUG FIXES o `tidy_source()` should not write an extra space to the last line of code (thanks, @mr-karan, #49) o long strings (> 1000 characters) in source code can be preserved now (thanks, @jholtman, #50) o `tidy_source()` might move any lines of code starting with `else` back to the previous lines (thanks, @Auburngrads, #51)
Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 16 14:52:15 2016 UTC (7 years, 5 months ago) by wen
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base,
pkgsrc-2016Q3,
pkgsrc-2016Q2-base,
pkgsrc-2016Q2
Changes since 1.2: +5 -5
lines
Diff to previous 1.2 (colored)
Update to 1.3 Upstream changes: CHANGES IN formatR VERSION 1.3 NEW FEATURES o `tidy_source()` can deal with multibyte characters that cannot represented in the system native encoding now (on Windows) o `usage()` works for functions obtained from `::` or `:::` now, e.g. `usage(formatR::tidy_source)` CHANGES IN formatR VERSION 1.2 MAJOR CHANGES o the minimal required R version is 3.0.2 now CHANGES IN formatR VERSION 1.1 NEW FEATURES o added a new argument `output` to usage() BUG FIXES o fixed yihui/knitr#918: when code is NULL, parse() will hang (with a question mark waiting for input)
Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 4 01:59:18 2015 UTC (7 years, 10 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base,
pkgsrc-2016Q1,
pkgsrc-2015Q4-base,
pkgsrc-2015Q4
Changes since 1.1: +2 -1
lines
Diff to previous 1.1 (colored)
Add SHA512 digests for distfiles for textproc category Problems found locating distfiles: Package cabocha: missing distfile cabocha-0.68.tar.bz2 Package convertlit: missing distfile clit18src.zip Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 19 20:31:50 2014 UTC (9 years ago) by brook
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base,
pkgsrc-2015Q3,
pkgsrc-2015Q2-base,
pkgsrc-2015Q2,
pkgsrc-2015Q1-base,
pkgsrc-2015Q1,
pkgsrc-2014Q4-base,
pkgsrc-2014Q4,
pkgsrc-2014Q3-base,
pkgsrc-2014Q3
Initial import of formatR v1.0 as textproc/R-formatR. This package provides a function tidy_source() to format R source code. Spaces and indent will be added to the code automatically, and comments will be preserved under certain conditions, so that R code will be more human-readable and tidy. There is also a Shiny app as a user interface in this package (see tidy_app()). Note: this commit is part of reorganizing some of the recently imported R packages, which are being reimported into more appropriate categories (and removed from math) as a result of a recent discussion on tech-pkg and privately with wiz@. See the thread starting with: http://mail-index.netbsd.org/tech-pkg/2014/09/05/msg013558.html