Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lockedata/mockaRoo
R Package 📦 to Generate mock data with the Mockaroo API :sparkles:
https://github.com/lockedata/mockaRoo
mock-data mockaroo mockaroo-api mocking r r-package rstats
Last synced: 9 days ago
JSON representation
R Package 📦 to Generate mock data with the Mockaroo API :sparkles:
- Host: GitHub
- URL: https://github.com/lockedata/mockaRoo
- Owner: lockedata
- License: other
- Created: 2016-02-29T16:25:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T06:02:40.000Z (over 6 years ago)
- Last Synced: 2024-08-13T07:12:48.646Z (4 months ago)
- Topics: mock-data, mockaroo, mockaroo-api, mocking, r, r-package, rstats
- Language: R
- Homepage:
- Size: 12.7 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - lockedata/mockaRoo - R Package 📦 to Generate mock data with the Mockaroo API :sparkles: (R)
README
---
output:
md_document:
variant: markdown_github
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```# mockaRoo
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
[![Travis-CI Build Status](https://travis-ci.org/stephlocke/mockaRoo.svg?branch=master)](https://travis-ci.org/stephlocke/mockaRoo)
[![Coverage Status](https://img.shields.io/coveralls/stephlocke/mockaRoo.svg)](https://coveralls.io/r/stephlocke/mockaRoo?branch=master)Generate mock data with the [Mockaroo API](https://www.mockaroo.com/api/docs)
## Development
This package is in it's infancy - if you'd like mock data in R, give your feature requests and opinions in the [issue tracker](https://github.com/stephlocke/mockaRoo/issues).## Usage
```{r results='hide', message=FALSE}
if(!require(devtools)) install.packages("devtools")
devtools::install_github("stephlocke/mockaRoo")
``````{r tidy = TRUE}
library(mockaRoo)basicSchema<-data.frame(
name = "blah"
, percentBlank = 0
, type = "Color"
)response<-mockaroo("json"
, list( key = "48b71860"
, count = 10)
, schema = jsonlite::toJSON(basicSchema)
)jsonlite::prettify(response)
```-------
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.