Learn R Programming

rbefdata (version 0.3.5)

bef.portal.attach.to_dataset: Attach a freeformat file to a dataset

Description

This function attaches a freeformat file to a dataset.

Usage

bef.portal.attach.to_dataset(id, attachment, description = "", open_browser = FALSE, curl = getCurlHandle())

Arguments

id
The ID of the dataset you like to attach to. You can get the ID from the URL of the dataset.
attachment
Can be either a path to a file or an R data frame.
description
An optional description to your attachmed freeformat file.
curl
You can pass in a curl handle to reduce memory footprint and to add own options
open_browser
If this is set to true the page of the dataset is opened in the browser after successful upload. This defaults to FALSE.

Value

Returns a status message whether the update was successful or not.

Examples

Run this code
## Not run: 
#   bef.portal.attach.to_dataset(id = 72, attachment = dataset, description = "This
#                is a pure test description for the new attachment file", open_browser = T)
#       ## End(Not run)

Run the code above in your browser using DataLab