The aim of this initial API release is to allow functionalization of various HTML elements in Shiny applications and Markdown documents. For example, many R dashboard packages allow creation of profile pages, like buttons, follow buttons. But none of those packages offer easy ways to make those features functional.
The api.rpkg.net R package, although not yet published on CRAN
, will be used to accomplish these goals. The initial features will include the following -
- Integration for Like/Unlike buttons
- Integration for Follow/Unfollow buttons
- Integration of counts for App and Profile views
Example simple usage: Like, Follow and tracking of views
# Install the package install.packages("api.rpkg.net"); # Load the package library("api.rpkg.net"); # Implement setup.API(key = "223cw23f2v22222v") # this should be obtained from https://api.rpkg.net/endp setup.likes(id="button1") setup.follow(id="follow1") fetchLikeCount(); fetchFollowCount(); fetchPageViews();