save_googlecloud: Return a javascript function to save data to Google datastore

Description Usage Details Value See Also

View source: R/save_locally.R

Description

Return a javascript function to save data to Google datastore

Usage

1

Details

The purpose of the save_googlecloud() is to return a javascript function that, when called from within the jsPsych experiment, will write the data to the Google datastore. The intention is that when an experiment is to be deployed on Google App Engine (i.e., using the run_googlecloud() function to deploy the experiment), the save_googlecloud() function provides the mechanism for saving the data. If the goal is simply to save the data set at the end of the experiment, the easiest way to do this is when building the experiment using build_experiment(). Specifically, the method for doing this is to include the argument on_finish = save_googlecloud() as part of the call to build_experiment().

Value

A javascript function to write data to the Google datastore

See Also

run_googlecloud, build_experiment


djnavarro/jaysire documentation built on April 12, 2021, 4:25 a.m.