Learn R Programming

fulltext (version 0.1.8)

collect: Collect data from a remote source in fulltext

Description

collect grabs full text data from a remote storage device. get_text is a convenience function to grab the nested text data and bring it up in the list for easier access

Usage

collect(x, ...)

# S3 method for ft_data collect(x, ...)

get_text(x, ...)

# S3 method for ft_data get_text(x, ...)

Arguments

x

Input. An object of class ft_data

...

Further args, ignored.

Examples

Run this code
# NOT RUN {
# Get some data, stash in rds file
x <- ft_get('10.1371/journal.pone.0086169', from='plos', cache=TRUE, backend="rds")

# note that the data is not in the object, gives NULL
x$plos$data$data

# Collect data from the rds file
y <- x %>% collect()

# note how the data is now in the object
y$plos$data$data

# Let's get the actual 
x %>% collect() %>% get_text()
# }

Run the code above in your browser using DataLab