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

1
2
3
4
5
6
7
8
9
collect(x, ...)

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

get_text(x, ...)

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

Arguments

x

Input. An object of class ft_data

...

Further args, ignored.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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()

## End(Not run)