Skip to content

Commit

Permalink
Export a new function
Browse files Browse the repository at this point in the history
  • Loading branch information
byzheng committed Mar 7, 2024
1 parent bacb951 commit 1b3b258
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export(delete_tiddler)
export(get_tiddler)
export(get_tiddlers)
export(put_tiddler)
export(split_field)
export(tiddler_document)
export(tiddler_json)
export(tw_options)
Expand Down
6 changes: 6 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ tiddler_json <- function(title, text,
}


#' Split tiddlywiki field into values
#'
#' @param s a string
#'
#' @return an vector of values
#' @export
split_field <- function(s) {
stopifnot(!is.null(s))
stopifnot(length(s) == 1)
Expand Down
17 changes: 17 additions & 0 deletions man/split_field.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b3b258

Please sign in to comment.