Posts

Showing posts from February, 2017
Faced issue with twitteR package in R in authentication http 401 code in method,  ------------------------------------------------------------------- The below helped. consumer_key <- " YOUR CONSUMER KEY " consumer_secret<- " YOUR CONSUMER SECRET" setup_twitter_oauth(consumer_key, consumer_secret,  access_token=NULL , access_secret=NULL )
Feature of Scrolling in a page in RMarkdown Flexdashboard. ---------------------------------------------------------------------------------- I was using Flexdashboard with RMarkdown and faced an issue. When I was adding more rows, it used to squeeze the existing plots on the page and i was not getting the feature of scrolling automatically. I saw all the examples of Flexdashboard from the author, but every example had only 3-4 plots which fit in a single page. I search for some documentation but could not find one. Solution: We have to include a small key-value pair text, " vertical_layout: scroll" and it worked like magic and i had very nice scrolling feature on my page.
Accessing A variable from current Session in RMarkdown Code chunk . -------------------------------------------------------------------------------------------- When you run RStudio and click on Knitr Html to knit an R Markdown file it starts a new R session and you can not see the variables from other current running R Session. If you want to use Variables from the current session use rmarkdown:render("x.rmd") and it will run the markdown in the current session itself. But if the RMarkdown page contains shiny components as well rmarkdown:render given an error, "path for html_dependency not provided". To overcome that you have to use rmarkdown:run() function instead.