Provides alternative to: amcat.upload.articles Uses jsonlite instead of rjson, can handle emojis. Does not require a headline field. Upload articles into a given project and article set, or into a new article set if the articleset argument is character All arguments title, medium etc. should be either of the same length as text, or of length 1 All factor arguments will be converted to character using as.character For date, please provide either a string in ISO notatoin (i.e. "2010-12-31" or "2010-12-31T23:59:00") or a variable that can be converted to string using format(), e.g. Date, POSIXct or POSIXlt. The articles will be uploaded in batches of 100.
1 2 3 4 5 6 7 8 9 10 11 |
conn |
the connection object from |
project |
the project to add the articles to |
articleset |
the article set id of an existing set, or the name of a new set to create |
text |
the text of the articles to upload |
title |
the headlines/title of the articles to upload |
medium |
the medium of the articles to upload. |
provenance |
if articleset is character, an optional provenance string to store with the new set |
... |
and additional fields to upload, e.g. author, byline etc. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.