knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

RleanC

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

Installation

You can install the released version of RleanC by

# install.packages("devtools")
devtools::install_github("KiayangQ/RleanC")

Example

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)


KiayangQ/RleanC documentation built on Feb. 28, 2020, 12:20 a.m.