knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of dataVision is to easily plot data for fast visualization.
You can install the released version of dataVision from CRAN with:
install.packages("dataVision")
This is a basic example which shows you how to solve a common problem:
library(dataVision) dataVision('Sepal.Width', 'Petal.Width', iris)
I first loaded in library devtools and created a tidy package.
library(devtools) create_tidy_package("~/Desktop/dataVision")
Next, I reloaded devtools and loaded the package using load_all() and use_git().
library(devtools) load_all() use_git()
To create an r script for my function I used use_r("dataVision") then committed it.
Following that, I updated the Description file manually adding a title, information about the author, and a description. Then I used use_mit_license("Adrienne Kinman") to update the license.
Then I added a roxygen2 function to my dataVision function outlining the @param varaibles, @return expected, @export and some @example code. A namespace file was created as part of this process.
use_r("dataVision") check() use_mit_license("Adrienne Kinman")
Now, I added tests and dependencies to my R package.
use_testthat("dataVision") document() use_package("testthat") use_package("dplyr") use_package("tidyverse") use_pipe() devtools::document()
Finally, I built the readme file and vignette.
use_readme_rmd() build_readme() use_vignette("dataVision")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.