Learn R Programming

squids (version 25.6.1)

get_squid: Set or get a SQUID (to follow)

Description

Because the SQUID is saved in the options, it persists when changed e.g. in function calls, for example when using lapply().

Usage

get_squid(namespace = NULL)

set_squid(x, namespace = NULL)

Value

The saved SQUID.

Invisibly, x.

Arguments

namespace

Optionally, for saving multiple SQUIDs, a namespace.

x

A SQUID (or several; the highest is stored).

Examples

Run this code
exampleSQUID <-
  squids::squids();

squids::set_squid(
  exampleSQUID
);

squids::get_squid();

Run the code above in your browser using DataLab