Connect to 'Google Cloud Print' API

Allows printing documents from R through 'Google Cloud Print' API. See < https://developers.google.com/cloud-print/docs/overview> for more information about 'Google Cloud Print'.


Travis-CI Build StatusAppVeyor Build Status

The goal of googlePrintr is to connect to the Google Cloud Print API. It is depends on the awesome googleAuthR package.

Installation

You can install googlePrintr from github with:

devtools::install_github("CannaData/googlePrintr")

Example

Printing:

library(googleAuthR)
library(googlePrintr)
options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/cloudprint"))
options("googleAuthR.ok_content_types"= c(getOption("googleAuthR.ok_content_types"),
                                          "text/plain"))
 
# login using googleAuthR
gar_auth_service("my.json", scope = c("https://www.googleapis.com/auth/cloudprint"))
 
printer <- gcp_search("myPrinter")
 
gcp_submit(printer$id[1], 
           "New Title",
           content = 
             "<h1>Hello World</h1>",
           contentType = "text/html"
           )

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("googlePrintr")

0.0.1 by Carl Ganz, 3 years ago


Browse source code at https://github.com/cran/googlePrintr


Authors: Carl Ganz [aut, cre] , CannaData Solutions [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports googleAuthR, jsonlite, httr

Suggests drat


See at CRAN