load_data: Load data from mongoDB

View source: R/fct_helpers.R

load_dataR Documentation

Load data from mongoDB

Description

Attempts to read data from specified mongoDB collection. Once read, the raw data is cleaned and prepared. If an error occurs in either of these 2 steps, data is read from an .rda file in the data folder - this contains the last successfully read data from the mongoDB collection.

Usage

load_data(r, data)

Arguments

r

A reactiveValues object

data

Either "data" or "targets"

Value

Nothing - a new child of r is created to hold the data.

Examples

## Not run: 
r <- reactiveValues()

load_data(r, "data")
load_data(r, "targets")

## End(Not run)

MarkMc1089/FIC documentation built on April 3, 2022, 6:05 p.m.