Joe Cheng
eb9f5f9025
Dependency fixes
...
1) Give bootstrap deps a path so they can be used in static docs
2) Resolve dependencies before rendering page (whoops)
2014-05-31 08:06:03 -07:00
Joe Cheng
44a795bf18
Extract HTML functionality to htmltools library
2014-05-31 08:06:03 -07:00
Joe Cheng
77bff6e6c2
Allow shinyUI and shinyServer calls to not be the last expression in ui.R and server.R
2014-05-08 16:14:53 -07:00
Joe Cheng
e395ae6555
Merge branch 'html-deps'
...
Code reviewed by @jmcphers
Conflicts:
DESCRIPTION
R/bootstrap.R
R/reactives.R
2014-04-24 16:37:46 -07:00
Joe Cheng
4028dbfda1
Do typeset mathjax on initial load
...
Fixes initial load not being typeset on e.g.:
https://gist.github.com/jcheng5/a0d123d58737590ac21e
2014-04-21 13:59:17 -07:00
Joe Cheng
fcd941d33d
Use html_dependencies for showcase mode
...
For some reason, showcase mode was breaking sliders without this (e.g. 06_tabsets)
2014-04-21 12:34:54 -07:00
Yihui Xie
2720cfe346
should use MathJax.Hub.Queue() instead of .Typeset(): finally solved the mysterious race condition issue
...
http://docs.mathjax.org/en/latest/typeset.html
2014-04-21 01:02:05 -05:00
Joe Cheng
3deb4c3f42
Fix initial dependency handling, fix knit_print
2014-04-18 16:21:13 -07:00
Joe Cheng
6945091238
First attempt at HTML dependency management
2014-04-18 15:18:51 -07:00
Jonathan McPherson
81bd57c5ea
emit appropriate warnings in R Markdown mode; collect <head> contents
2014-04-11 10:53:25 -07:00
Joe Cheng
e5e54fe4c1
Implement reactive domains
2014-04-07 21:55:05 -07:00
Joe Cheng
df34dcdb0c
Pass R CMD check
2014-04-03 19:37:45 -07:00
Joe Cheng
b187485172
Major refactor of runApp/addSubApp pipeline
...
- shinyUI and shinyServer calls are no longer required in ui.R and server.R
- shinyAppObj renamed to shinyApp
- runApp can take pathname, list(ui=..., server=...), shinyApp, and shinyAppDir
as appDir argument
- Unify all Shiny app representations around shiny.appobj
- BREAKING CHANGE: shinyUI no longer has a "path" argument
- Instead of returning UI, ui.R can return a function that returns UI; it will
be invoked each time the page is requested. (Note that this is NOT the same
as saying ui.R will be run each time the page is requested.) The function can
take either no args or a single "req" arg which is the request.
2014-04-03 01:42:01 -07:00
Yihui Xie
35090251ef
basically library(pkg) = if (!require(pkg)) stop()
2014-03-24 23:49:34 -05:00
Winston Chang
93e276bd9b
Fix capitalization of markdown package
2014-03-24 12:35:12 -05:00
Yihui Xie
07c8f0c4b7
use skipStartupTypeset: true for MathJax config, and call MathJax.Hub.Typeset() later
...
setTimeout() is necessary for uiOutput(); we need to wait for a short while before typesetting math, otherwise two bad things can happen:
1. a math expression may be rendered twice (static output)
2. it is not rendered at all (dynamic ui output)
so the compromise is to typeset math after a short while when the document is ready; 200 ms is an arbitrary choice here
2014-03-18 14:24:23 -05:00
Yihui Xie
5c34aa0bb5
remove includeMathJax() and use withMathJax() instead, per suggestion of @jcheng5
2014-02-17 18:52:25 -06:00
Yihui Xie
c0f7ba9d46
use Rd2roxygen to convert the two manually written Rd files to roxygen comments, so that all Rd files are automatically generated from roxygen2 now
2014-02-11 22:59:37 -06:00
Yihui Xie
3530871560
strip white spaces
2014-02-11 22:59:37 -06:00
Yihui Xie
e9ae16e534
closes #25 : a new function includeMathJax()
2014-02-11 15:59:23 -06:00
Joe Cheng
3b90eed89f
Add check for staticdocs index correctness
2014-02-05 13:45:25 -08:00
Jonathan McPherson
41b292b45b
complete refactoring of raw text output to tags$... methods
2014-01-06 13:19:07 -08:00
Jonathan McPherson
af9be9cae8
use tags functions for writing app info block
2014-01-06 11:03:53 -08:00
Jonathan McPherson
ccfaea64c5
simplify & clean up construction of markdown content
2014-01-06 10:38:05 -08:00
Jonathan McPherson
f0eb9d48c9
show license beneath code
2013-12-30 14:31:45 -08:00
Jonathan McPherson
0ac284009e
add Readme.md files to most examples
2013-12-30 13:05:54 -08:00
Jonathan McPherson
712f18f4e8
clean up some comments and accidentally introduced whitespace changes
2013-12-23 15:04:05 -08:00
Jonathan McPherson
5ac09180a5
don't emit superfluous newline at beginning of .R files
2013-12-19 14:03:07 -08:00
Jonathan McPherson
c8bb122557
hide entire well when app doens't have metadata in sxs mode
2013-12-19 12:21:17 -08:00
Jonathan McPherson
bcef603a36
new layout: remove top bar, show app info by readme
2013-12-19 11:35:27 -08:00
Jonathan McPherson
6d5f06a61d
initial support for showcase mode from DESCRIPTION (not complete)
2013-12-18 17:06:31 -08:00
Jonathan McPherson
3e00e2ad58
show contents of global.R if it exists
2013-12-18 15:13:11 -08:00
Jonathan McPherson
cad2be5e53
always use tabs to show code; show readme alongside code
2013-12-18 13:41:15 -08:00
Jonathan McPherson
58fe5f263f
nicer code tabs in code-alongside mode
2013-12-17 20:18:22 -08:00
Jonathan McPherson
79ec6845f8
use more bootstrap-flavored styles
2013-12-17 16:10:53 -08:00
Jonathan McPherson
0f81ba8307
use minified jquery ui
2013-12-17 15:09:26 -08:00
Jonathan McPherson
a30543b035
use rstudio fork of highlight.js
2013-12-17 14:51:44 -08:00
Jonathan McPherson
7ff47c8c51
use rstudio default highlight colors
2013-12-17 13:52:17 -08:00
Jonathan McPherson
2544e29be3
use show with app / show below buttons to toggle
2013-12-17 13:16:23 -08:00
Jonathan McPherson
0f135f881a
make code position toggleable
2013-12-17 10:56:40 -08:00
Jonathan McPherson
2f1bb5e1c0
begin restricting code height and scrolling relevant portion into view
2013-12-17 10:23:27 -08:00
Jonathan McPherson
02b5f96eee
move from popup window model to side-by-side model
2013-12-17 09:00:27 -08:00
Jonathan McPherson
676affdd03
add new header-free showcase mode (use showcase=2 on query string)
2013-12-16 14:12:13 -08:00
Jonathan McPherson
5caf41c067
Merge remote-tracking branch 'origin/master' into feature/showcase-mode
2013-12-16 13:21:59 -08:00
Jonathan McPherson
58f9e89fab
restore javascript markdown formatter
2013-12-16 13:15:11 -08:00
Jonathan McPherson
f061e3486e
move showcase-specific css to its own file
2013-12-16 09:52:58 -08:00
Jonathan McPherson
d5cdaddeea
use markdown package instead of client-side md renderer
2013-12-13 16:15:10 -08:00
Jonathan McPherson
c2cf4e72f8
decouple showcase mode from app boot; factor out of shiny.js
2013-12-13 14:46:31 -08:00
Jonathan McPherson
d1bcc557f0
move showcase js to its own file; fix cross-document bug on firefox
2013-12-13 10:20:50 -08:00
Jonathan McPherson
fdb256a534
fix some animation and margin problems
2013-12-12 16:16:04 -08:00