cf_last_query: Retrieve Last Query Result from CliFlo

View source: R/cfQuery.R

cf_last_queryR Documentation

Retrieve Last Query Result from CliFlo

Description

Retrieve the last query submitted to CliFlo instead of querying the database again and losing subscription rows.

Usage

cf_last_query()

Details

This function is a back up for when the clifro query has been submitted and the data returned but has not been assigned, or inadvertently deleted. This saves the user resubmitting queries and using more rows from their subscription than needed.

Note

Only the data from the last query is saved in clifro.

Examples

## Not run: 
# Query CliFlo for wind at Reefton Ews
cf_query(cf_user(), cf_datatype(2, 1, 1, 1), cf_station(), "2012-01-01 00")

# Oops! Forgot to assign it to a variable...
reefton.wind = cf_last_query()
reefton.wind

## End(Not run)

ropensci/clifro documentation built on March 17, 2023, 12:17 a.m.