March 9, 2014

New feature ―create your own slideshow from slideshare―

I'm glad to inform you of new features of the slideshare package !

They are “createSlideshowByTag” and “createSlideshowByUser”.

The features enable you to create a slideshow from slides uploaded to “www.slideshare.net”.

Let's register the slideshare developer's API and try to create your own slideshow!

http://www.slideshare.net/developers/applyforapi

Here's an example.

library(slideshare)
# slideshare package depends on rCharts and plyr.
# You need to install them before using it.

# install.packages("plyr")
# devtools::install_github("ramnathv/rCharts")

key <- "Your APIkey"
secret <- "Your sharedsecret" 

createSlideshowByTag(tag="tokyor", limit=100, 
                     apikey=key, sharedsecret=secret, 
                     file="tokyor.html")

browseURL("tokyor.html")

createSlideshowByUser(user="dichika", limit=100, 
                     apikey=key, sharedsecret=secret, 
                     file="dichika.html")

browseURL("dichika.html")

No comments:

Post a Comment