saved_threads: Load all saved threads.

View source: R/twitter.R View source: R/00-thread.R

saved_threadsR Documentation

Load all saved threads.

Description

Loads all the thread objects in a directory.

Loads all the thread objects in a directory.

Usage

saved_threads()

saved_threads()

Value

A list with thread objects.

A list with thread objects.

Examples

## Not run: 
# Create a thread, publish it and save it.
thread$new()$
   add_post("This is a test thread!")$
   publish()$
   save()

# List all saved threads
threads <- saved_threads()

# Destroy the last thread.
threasd[[length(threads)]]$destroy()

## End(Not run)

## Not run: 
# Create a thread, publish it and save it.
thread$new()$
   add_post("This is a test thread!")$
   publish()$
   save()

# List all saved threads
threads <- saved_threads()

# Destroy the last thread.
threasd[[length(threads)]]$destroy()

## End(Not run)


eliocamp/spindler documentation built on Jan. 31, 2023, 5:49 a.m.