Winston Chang
8d2367ed82
Remove use of rstudio::viewer for R CMD check
2014-12-08 11:33:56 -06:00
Winston Chang
e56571840b
Change some examples to donttest, to make CRAN happy
2014-10-01 10:32:10 -05:00
Yihui Xie
5f46d97409
fixes #306 : should use file_test('-d') to check if a directory exists, instead of file.exists(), because file.exists('foo/') is FALSE even if the directory foo exists
...
I was bitten by this once before: a874ac5b66
2014-09-03 17:21:50 -05:00
Winston Chang
adf69b4890
Look for server.R before app.R
2014-08-13 15:30:40 -05:00
Winston Chang
0f431ed384
Detect showcase mode for single-file apps
2014-08-12 16:36:00 -05:00
Winston Chang
77de4df0ff
shinyApp: use NULL default for ui and server
...
This is so that, when a single-file app returns a shinyApp with a blank
`ui` argument, Shiny will not error out, and instead it can search for
a www/ subdirectory.
2014-08-07 13:18:21 -05:00
Winston Chang
0564de37ee
Add support for shinyAppDir with single-file app.R
2014-08-06 21:51:36 -05:00
Yihui Xie
cc493fd545
fall back to native encoding on Windows if UTF-8 does not work
2014-07-15 16:05:23 -05:00
Jonathan McPherson
7b25c282c0
append rather than replace knit_meta with Shiny warning
2014-06-25 10:20:07 -07:00
Jonathan McPherson
f266cab580
emit R Markdown warnings for render* functions as well as shinyApps
2014-06-24 16:43:58 -07:00
Yihui Xie
858ab00e36
closes #501 : knit_print() for inline output uses the inline argument passed from knitr
2014-06-19 00:24:10 -05:00
Yihui Xie
0bf1386802
UTF8 encoding for runApp(list(ui, server)) as well
2014-06-13 18:53:36 -05:00
Yihui Xie
237522a1f7
assuming all the input R scripts are UTF8 encoded
...
ui.R, server.R, and global.R
2014-06-13 18:00:46 -05:00
Joe Cheng
5bf362927f
Allow shinyApp objects to appear inside tags
2014-06-06 15:23:13 -07:00
JJ Allaire
046d712d6a
Revert "Allow Shiny apps to appear inside other tags"
...
This reverts commit 9ab2f5338e .
2014-06-01 09:59:50 -04:00
Joe Cheng
9ab2f5338e
Allow Shiny apps to appear inside other tags
2014-05-31 09:06:54 -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
57a02318e3
Clearer error message when shinyAppDir is given a nonexistent path
2014-05-05 15:31:21 -07:00
Joe Cheng
fbda2db884
Only show special "No UI defined" message for shinyAppDir
2014-05-02 18:52:37 -07:00
Joe Cheng
1a643cecf3
Allow naked renderXXX functions to be used inside other tags
2014-04-28 10:13:16 -07:00
Yihui Xie
d2bd59d149
Make meta of length 0 when we are sure there are no dependencies
...
knitr::asis_output() will decide whether x is cacheable by checking length(meta) == 0. Some shiny tags are cacheable, such as numericInput(), because it is pure HTML without dependencies, whereas selectizeInput() is not cacheable due to the dependency on selectize.js.
2014-04-25 01:14:14 -05:00
Yihui Xie
7bdac5a44e
Make sure shiny app objects are not cacheable using asis_output(..., cacheable = FALSE)
...
This commit reverts d08a2507fa
2014-04-25 01:14:08 -05: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
Jonathan McPherson
d08a2507fa
fail when attempting to insert a shiny app into a cached chunk
2014-04-24 15:28:07 -07:00
Joe Cheng
97dafa0a55
Include html-preserving comments in knit_print
2014-04-23 12:46:56 -07:00
Joe Cheng
3deb4c3f42
Fix initial dependency handling, fix knit_print
2014-04-18 16:21:13 -07:00
Joe Cheng
a4325adcdd
Add uiPattern param to shinyApp to allow one ui to serve multiple URLs
...
Reviewed by @jmcphers
2014-04-15 12:53:18 -07:00
Joe Cheng
3bbf06ba49
Don't indent HTML during knit_print
2014-04-14 15:31:45 -07:00
Jonathan McPherson
12ea950c5f
use more idiomatic syntax for resolving rmarkdown.runtime
2014-04-11 14:41:06 -07:00
Jonathan McPherson
6a9cba90f4
have validateCssUnit treat unit-free character strings as pixel units
2014-04-11 12:59:15 -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
14606f4087
Remove unnecessary :::
2014-04-11 10:16:59 -07:00
Joe Cheng
f67849eb47
Doc cleanup
2014-04-09 17:10:37 -07:00
Joe Cheng
f8bf146b6c
Render functions can be inserted directly into .Rmd
...
All render functions need to call markRenderFunction on their
return values for this mechanism to work.
Also:
- Remove runRmdContainer (it's moved to rmarkdown)
- Remove some bad .Rbuildignore entries
- Make height/width in shinyApp respected
2014-04-09 14:53:56 -07:00
Joe Cheng
29c0f9a43a
Ignore additional knit_print parameters
2014-04-07 17:10:44 -07:00
Joe Cheng
3dce2e761a
Fix debugging of server files
...
.global$server becomes appvars$server
2014-04-04 10:30:42 -07:00
Joe Cheng
80a54200ce
Comment tweaks
2014-04-03 23:45:08 -07:00
Joe Cheng
df34dcdb0c
Pass R CMD check
2014-04-03 19:37:45 -07:00
Joe Cheng
81b6fbe263
Remove obsolete print.shiny.appdir
2014-04-03 01:51:30 -07:00
Joe Cheng
b3af293f66
Fix scoping bug
2014-04-03 01:49:36 -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
Joe Cheng
b449d9759c
Minor doc updates
2014-04-01 23:02:22 -07:00
Joe Cheng
fd7b54fb77
Clean up exports, examples
2014-03-31 16:40:17 -07:00
Joe Cheng
3ed68ffd92
knit_print tags and tagLists
2014-03-31 11:17:24 -07:00
Joe Cheng
cc3cd2c141
Implement Shiny apps embedded as iframes in knitr
2014-03-31 10:03:22 -07:00