Skip to contents

Uploads JSON data that adhere to the BDS-format, parses its contents, converts it to a list with elements psn and xyz, and stores the result on the server for further processing. The function is useful for caching input data over multiple requests to OpenCPU. The cached data feed into other JAMES functions by means of the "loc" argument. The server wipes the cached data after 2 hours.

Usage

fetch_loc(txt = "", ...)

Arguments

txt

A JSON string, URL or file

...

Ignored

Value

A list with elements psn (persondata) and xyz (timedata).

Author

Stef van Buuren 2021

Examples

fn <- system.file("testdata", "client3.json", package = "james")
p <- fetch_loc(fn)
#> Warning: fetch_loc() is deprecated and will disappear in Nov 2022. Please use upload_data() instead.