Skip to content

Commit 3bd10ff

Browse files
committed
Tweak
1 parent d99b4db commit 3bd10ff

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

R/tomledit.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
#' Parse or Edit TOML files
1+
#' Parse or Edit TOML text
22
#'
3-
#' The `toml_edit()` function modifies values in a TOML retaining order, comments,
4-
#' and whitespace.
3+
#' The [edit_toml()] function modifies values in a TOML text while retaining the
4+
#' order, comments, and whitespace. Use `read_toml()` and `write_toml()` to convert
5+
#' between TOML text and R lists.
56
#'
67
#' @references [toml-edit-js examples](https://github.com/rainbowatcher/toml-edit-js/blob/main/tests/edit.test.ts)
78
#' @export
9+
#' @return `parse_toml()` returns a list and `edit_toml()` returns the modified
10+
#' TOML text.
811
#' @name toml
912
#' @rdname toml
1013
#' @param toml string with toml text

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ Simple toolkit for parsing and generating TOML text. Based on
66
[toml_edit](https://docs.rs/toml_edit/latest/toml_edit/) which
77
allows for modifying toml while preserving order, comments, and whitespace.
88

9-
Note that current we ship a [WebAssembly build](https://github.com/rainbowatcher/toml-edit-js)
10-
of tomledit such that we do not have to compile from Rust in R, and things work
11-
on all platforms including WebR. If Rust becomes better supported on CRAN we
12-
could interface the Rust crate directly.
9+
We currently use a [WebAssembly build](https://github.com/rainbowatcher/toml-edit-js)
10+
of toml_edit such that we do not have to deal with Rust code in R and everything
11+
works without compilation on any platform, including WebR. When Rust becomes better
12+
supported on CRAN and WebR, we could consider binding to Rust directly, although
13+
it does not make too much of a difference.
1314

1415

1516
## Install

man/toml.Rd

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)