bef.portal.update.dataset: Update a dataset already on BEFdata portal

Description Usage Arguments Details Value Examples

Description

This function updates a dataset from within R. Before you can do so you need to have an account on the portal and set your credentials via the bef.options() function so the authentication works. The function requires an ID of the dataset and either a path to a CSV file or a data frame used to update the old dataset.

Usage

1
2
  bef.portal.update.dataset(dataset, dataset_id,
    warn = TRUE, open_browser = F, curl = getCurlHandle())

Arguments

dataset

The data you like to use for upload and to update the old dataset. This can be a either a path to a CSV file or a data frame.

dataset_id

The ID of the dataset you like to update. You can get the ID from the URL of the dataset you like to update.

warn

Is a warning that should prevent overriding dataset accidentially. Set this to FALSE if you know what you do.

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.

Details

Please be careful as this function overrides the old dataset (raw data) on the portal completely.

Value

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

Examples

1
2
3
4
5
## Not run: 
 dataset = data.frame(a = c(1,2,3,4), b = c("a","b","c","d"))
 bef.portal.update.dataset(dataset = dataset, dataset_id = 72)
      
## End(Not run)

rbefdata documentation built on May 2, 2019, 8:39 a.m.