Learn R Programming

fulltext (version 0.1.6)

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, ...)
"collect"(x, ...)
get_text(x, ...)
"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()
# ## End(Not run)

Run the code above in your browser using DataLab