The goal of rLab5 is to create a R package to read from an API, in our case from APIXU.com which provides weather API.
You can install the released version of rLab5 from CRAN with:
install.packages("rLab5")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("anubhav-dikshit/rLab5")
This is a basic example which shows you how to solve a common problem:
## basic example code
library(rLab5)
get_data("Bangalore", 1)
#> Name Current_temp_C Current_humidity Current_wind_kph
#> 1 Bangalore 28 58 13
## Shiny App
shiny::runGitHub(repo = "anubhav-dikshit/rLab5", subdir = "inst/examples")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.