knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of hstone is to provide useful data and analysis on cards and decks in order for users to easily search the cards and decks they want and retrive the best decks in the current season, ultimately boosting the win-rate in Hearthstone.
# install.packages("devtools") devtools::install_github("nhk2120/hstone")
This is a basic example which shows you how to solve a common problem:
library(hstone) hscard(id = Sys.getenv("id"), secret = Sys.getenv("secret"), class = "mage", manaCost = 5, attack = 5, orderBy = "health") hsdeck(id = Sys.getenv("id"), secret = Sys.getenv("secret"), deckcode = "AAECAaoIAqH4AualAw7TAeAGkwn6qgL28AKP+wKc/wKMhQP2igO0lwPGmQP0mQPUpQPYqQMA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.