diff --git a/NAMESPACE b/NAMESPACE index 3c23380..e6e3cd2 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -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) diff --git a/R/utils.R b/R/utils.R index d87407a..17b1e94 100644 --- a/R/utils.R +++ b/R/utils.R @@ -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) diff --git a/man/split_field.Rd b/man/split_field.Rd new file mode 100644 index 0000000..1ac9e1a --- /dev/null +++ b/man/split_field.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/utils.R +\name{split_field} +\alias{split_field} +\title{Split tiddlywiki field into values} +\usage{ +split_field(s) +} +\arguments{ +\item{s}{a string} +} +\value{ +an vector of values +} +\description{ +Split tiddlywiki field into values +}