title: for the article, see fs_create for details.
description: of the article, see fs_create for details.
type: one of: dataset, figure, media, poster, or paper, see fs_create for details.
authors: Orded list of authors for the article, see fs_add_authors for details
categories: list of categories or category id numbers, see fs_add_categories for details.
tags: list of tags, see fs_add_tags for details.
links: list of links to add, see fs_add_links for details
files: path to the files to add, see fs_upload for details
visibility: one of "draft", "private" or "public". A draft document can still be edited and modified. A public document is visible to everyone and cannot be deleted (though additional authors to the work can still "claim" their authorship).
session: (optional) credentials, see link{fs_auth}
Returns
article id
Examples
## Not run:write.csv(mtcars,"mtcars.csv")id <- fs_new_article(title="A Test of rfigshare", description="This is a test of the fs_new_article function and related
methods", type="dataset", authors=c("Karthik Ram","Scott Chamberlain"), tags=c("ecology","openscience"), categories="Ecology", links="http://ropensci.org", files="mtcars.csv", visibility="private")## End(Not run)