knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of RleanC is to help R users to simplely retrieve value or data from LeanCloud. This package is a R wrapper of the RESTful API of LeanCloud. You can find more about LeanCloud RESTful API at here
You can install the released version of RleanC by
# install.packages("devtools") devtools::install_github("KiayangQ/RleanC")
This is a basic example which shows you how to retrieve your value or your data from the LeanCloud database
library(RleanC) obj <- get_obj(web="severURL",query="name of queried object",ID="AppID", KEY="AppKey")
You can find these information after logging in LeanCloud website: console--App keys. For example:
You can find your server URL on REST API
If you want to retrieve a js dataframe from a online jspsych experiment, use
#obj is the output of get_obj data <- js_data_get(obj)
You can also create a new object through create_obj function and upload it to the database
create_obj(web="severURL",obj_name="name of your object",body="dataframe or a json object you want to upload",ID,KEY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.