Learn R Programming

RNeXML (version 2.4.11)

nexml_figshare: publish nexml to figshare

Description

publish nexml to figshare

Usage

nexml_figshare(
  nexml,
  file = "nexml.xml",
  categories = "Evolutionary Biology",
  tags = list("phylogeny", "NeXML"),
  visibility = c("public", "private", "draft"),
  id = NULL,
  ...
)

Value

the figshare id of the object

Arguments

nexml

a nexml object (or file path to a nexml file)

file

The filename desired for the object, if nexml is not already a file. if the first argument is already a path, this value is ignored.

categories

The figshare categories, must match available set. see fs_add_categories

tags

Any keyword tags you want to add to the data.

visibility

whether the results should be published (public), or kept private, or kept as a draft for further editing before publication. (New versions can be updated, but any former versions that was once made public will always be archived and cannot be removed).

id

an existing figshare id (e.g. from fs_create), to which this file can be appended.

...

additional arguments

Examples

Run this code
if (FALSE) {
data(bird.orders)
birds <- add_trees(bird.orders)
doi <- nexml_figshare(birds, visibility = "public", repository="figshare")
}

Run the code above in your browser using DataLab