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

Build Status Codecov test coverage Lifecycle: maturing

imaggar

R client for accessing IMAGGA’s REST API. Do you want to know how to access IMAGGA API from R? Here is your package. imaggar is an easygoing and tidy friendly package.

Installation

You can install the released version of imaggar from CRAN with:

install.packages("imaggar")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("VictorSuarezL/imaggar")

Tagger Example

This is a basic example which shows you how to use ima_tag function:

magick::image_read("https://upload.wikimedia.org/wikipedia/commons/7/73/Lion_waiting_in_Namibia.jpg") 

With the code below we call IMAGGA API to tag the lion image:

library(imaggar)

api_key <- "xxx_f0273ebca9e09dc"
api_secret <- "xxx40eed126f1870dc3736063f546b83"

image_path <- "https://upload.wikimedia.org/wikipedia/commons/7/73/Lion_waiting_in_Namibia.jpg"

ima_tag(image_path, api_key = api_key, api_secret = api_secret)
load("./R/sysdata.rda")

tag_output <- tibble::as_tibble(tag_output)
tag_output


VictorSuarezL/imaggar documentation built on Oct. 31, 2019, 12:59 a.m.