Git Product home page Git Product logo

interactive's People

Contributors

ramnathv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

interactive's Issues

Including static images with runDeck?

Hi Ramnath,

This is amazing stuff! I have a super simple question, I hope this is an appropriate context to ask it.

When I try to include static, pre-rendered images with ![Alt text](/path/to/img.png) and compile the file with slidify(filename.Rmd), everything works, but when I compile the same Rmd file with runDeck(), the images don't show up. Instead I get broken link icons. What am I missing here? Does this make sense?

Thanks for your time!

Interactive Console with Hint/Test Code Functionality?

I have a slide with an interactive console working. This comes with four buttons on the bottom: Run Code, Test Code, Clear Output, and Get Hint.

I am trying to get the "Get Hint" button to work, as I would like to store some code in the hint to replace in the console (to show how it can be dynamically altered).

I've tried using the same syntax as from the quiz widget:

*** .hint
This is a hint

But even that causes the slideshow to crash with the following:

Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero
Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero

Is this simply not working at the moment, or am I missing something?

Thanks!

Matt

interactive charts do not show in browser with frameworks like deckjs and revealjs

Hi Ramnath,

I am practicing the tutorial on http://slidify.github.io/dcmeetup/demos/interactive/. The slides turn out nice.
Later on I changed framework to deckjs, the interactive charts didn't show up in the browser. Then I tried revealjs, still no luck.
Interestingly, I found your slidify playground and played around on-line with 'example 6: NVD3 Plots using rCharts'. You know what, both revealjs and deckjs work perfectly.
I don't know what is different. My R is 3.1.2 and all slidify and rcharts were downloaded as instructed on the page of http://slidify.github.io/dcmeetup/demos/interactive/.

-Ada

everything the same from repo, but no interactive slide

Dear Ramnath,

First, let me thank you for all the efforts you have put to maintain such great tools in Rstudio. I am becoming a big fan of slidify as I am passing "Developing Data Products" course on coursera.

However, I am running the exact example of interactive Interactive Chart with Controls from this repo. I did everything according to the descriptions. But, I can't see any interactive chart. I would be very thankful if you could give me some insight in this issue. I am struggling with interactive slides for a month and no luck in resolving it. I read all about interactive slides on forums and from your slidify website. But none helped me resolve these issues. I am now trying to reproduce the results from your repo. But,..

I get this error:

r Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero

my session info is:

R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.2 (Yosemite)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rCharts_0.4.5          googleVis_0.5.8        XML_3.98-1.1           shiny_0.11.1           slidifyLibraries_0.3.1
[6] slidify_0.4.5         

loaded via a namespace (and not attached):
 [1] codetools_0.2-10 digest_0.6.8     evaluate_0.5.5   formatR_1.1      grid_3.1.3       htmltools_0.2.6  httpuv_1.3.2    
 [8] knitr_1.9        lattice_0.20-30  markdown_0.7.4   mime_0.3         plyr_1.8.1       R6_2.0.1         Rcpp_0.11.5     
[15] RJSONIO_1.3-0    rmarkdown_0.5.1  stringr_0.6.2    tools_3.1.3      whisker_0.3-2    xtable_1.7-4     yaml_2.1.13     

I use this YAML:

---
title       : Test deck
subtitle    : 
author      : Mona
job         : 
framework   : io2012        # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js  # {highlight.js, prettify, highlight}
hitheme     : tomorrow      # 
widgets     : [bootstrap, quiz, shiny, interactive]           # {mathjax, quiz, bootstrap}
mode        : selfcontained # {standalone, draft}
knit        : slidify::knit2slides

---

Here is my slide:
--- .class #interactive

Interactive Chart with Controls

library(slidify)
library(slidifyLibraries)
require(shiny)
require(rCharts)
slidifyUI(
  sidebarPanel(
    selectInput('sex', 'Choose Sex', c('Male', 'Female')),
    selectInput('type', 'Choose Type',
      c('multiBarChart', 'multiBarHorizontalChart')
    )
  ),
  mainPanel(
    tags$div(id = 'nvd3plot', class='shiny-html-output nvd3 rChart')
  )
)

And here is my app1.R:

require(rCharts)
output$nvd3plot <- renderChart({
        haireye = as.data.frame(HairEyeColor)
        n1 <- nPlot(Freq ~ Hair, group = 'Eye', type = input$type,
                    data = subset(haireye, Sex == input$sex)
        )
        n1$set(dom = 'nvd3plot', width = 600)
        n1
})

Missing chart.html in interactive console using Highcharts

@ramnathv I tried to replace the googlevis example with a highcharts plot, but I get an error:

Warning: cannot open file
'/Users/reinholdsson/Documents/GitHub/interactive/highcharts/layouts/chart.html':
No such file or directory

Error: cannot open the connection

It does work with googlevis, nvd3 and highcharts without the console. I also tried to copy chart.html from the rCharts package without success.

skarmavbild 2013-06-22 kl 19 31 16
skarmavbild 2013-06-22 kl 19 31 23

Code is available here: https://github.com/reinholdsson/interactive/tree/highcharts/highcharts

Have I missed out on something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.