cf_last_query: Retrieve Last Query Result from CliFlo

Description Usage Details Note Examples

View source: R/cfQuery.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
9
## 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)

clifro documentation built on May 24, 2021, 9:06 a.m.