Skip to content

Commit

Permalink
set example requiring external server to dontrun
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsp-spirit committed May 25, 2021
1 parent 97c1557 commit 17d9c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/gifti_xml_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
#' @note Assumes that there already exists a global MetaData node. Also not that this is not supposed to be used for adding metadata to datarrays.
#'
#' @examples
#' \dontrun{
#' xmltree = gifti_xml(list(rep(3.1, 3L), matrix(seq(6)+0.1, nrow=2L)));
#' newtree = gifti_xml_add_global_metadata(xmltree, list("User"="Me", "Weather"="Great"));
#' gifti_xsd = "https://www.nitrc.org/frs/download.php/158/gifti.xsd";
#' xml2::xml_validate(newtree, xml2::read_xml(gifti_xsd));
#'
#' }
#' @export
gifti_xml_add_global_metadata <- function(xmltree, metadata_named_list, as_cdata=TRUE) {
xpath='.//MetaData';
Expand Down
3 changes: 2 additions & 1 deletion man/gifti_xml_add_global_metadata.Rd

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

0 comments on commit 17d9c63

Please sign in to comment.