Joe Cheng
e9fc873c8d
Restore HTML generating functions
...
These functions were temporarily ripped out of Shiny and moved
to the htmltools package. We've discovered that it's safe to
keep including them in shiny; as long as the functions in shiny
and the functions in htmltools are identical, the user won't
receive a conflict warning.
2014-05-29 14:00:48 -07:00
Joe Cheng
0153349979
Make S3 method consistent with base
2014-05-28 13:28:02 -07:00
Joe Cheng
b6a2122a41
Merge remote-tracking branch 'origin/master' into htmltools-refactor
...
Conflicts:
R/shiny.R
man/session.Rd
2014-05-28 13:18:49 -07:00
Joe Cheng
a0df8f3490
Merge pull request #491 from rstudio/bugfix/validation-silent
...
Suppress validation errors from printing at console
2014-05-28 13:14:02 -07:00
Winston Chang
6c14789362
Merge pull request #492 from rstudio/bugfix/0.10misc
...
Miscellaneous bug fixes
2014-05-23 14:13:29 -05:00
Winston Chang
880a12b914
Merge pull request #489 from yihui/bugfix/428
...
Fixes #428
2014-05-23 14:09:43 -05:00
Joe Cheng
93d69400e6
Merge pull request #486 from yihui/feature/widget-width
...
Width of selectize and sliders
2014-05-22 15:43:34 -07:00
Joe Cheng
d4829e49ea
Doc tweak to validation
2014-05-21 19:57:18 -07:00
Joe Cheng
1c56be3a6b
Suppress validation errors from printing at console
2014-05-21 19:51:24 -07:00
Joe Cheng
b86f9086ef
Avoid black background when renderPlot doesn't actually plot
2014-05-21 19:28:51 -07:00
Joe Cheng
343ca12c6f
Don't print NULL to the console during renderPrint
2014-05-21 19:28:28 -07:00
Yihui Xie
3679e8795f
fix #220 : the first entry is not necessarily a directory
...
in that case, we use dirname() on the first entry
2014-05-20 01:43:48 -05:00
Yihui Xie
39b4805a76
make sure the selected argument never contains names; fixes #428
2014-05-20 01:31:14 -05:00
Yihui Xie
85e020a513
examples of the 'width' argument
2014-05-19 11:24:56 -05:00
Yihui Xie
5b6268f5bc
add width to selectInput() as well
2014-05-19 11:23:52 -05:00
Yihui Xie
f8b38e4683
validateCssUnit(width) for selectize and slider
2014-05-17 01:32:01 -05:00
Yihui Xie
831fba9a53
add a 'width' option to selectizeInput() and sliderInput() to specify the width of these widgets
2014-05-17 01:28:27 -05:00
Joe Cheng
b1f233cd8c
Merge remote-tracking branch 'origin/pr/485'
...
Conflicts:
NEWS
2014-05-16 23:22:01 -07:00
Yihui Xie
3d0caba695
\emph cannot be used in \code{}: only \var and \link are allowed
2014-05-17 00:53:57 -05:00
Yihui Xie
79c92f1f8e
fixes #429 , which is yet yet another WAT of RJSONIO
...
perhaps we really should consider switching to jsonlite...
2014-05-17 00:43:13 -05:00
Joe Cheng
78f87d9003
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-16 15:39:08 -07:00
Yihui Xie
9d8d04ae28
add a 'width' argument so we can control the width of the text output
2014-05-16 14:17:50 -05:00
Yihui Xie
a42f046ff8
capture.output() has already considered withVisible(), and we do not need to redo it
2014-05-16 14:12:50 -05:00
Joe Cheng
0824726dbb
Adapt to htmltools 0.2.1 API
2014-05-15 15:17:42 -07:00
Joe Cheng
b711bb553f
Add S3 method for turning render function into tags
2014-05-14 17:12:15 -07:00
Joe Cheng
e57221861f
Extract HTML functionality to htmltools library
2014-05-14 17:12:15 -07:00
Joe Cheng
b00fbda1ae
Make sure random bytes are formatted with 2 chars
2014-05-14 17:11:18 -07:00
Joe Cheng
3189c748b5
Merge pull request #479 from rstudio/not-just-last-expressions
...
Allow shinyUI and shinyServer calls to not be the last expression in ui....
2014-05-14 09:06:28 -07:00
Joe Cheng
2700643cbf
Merge pull request #480 from jcheng5/bugfix/renderplot-height-overlap
...
Fix #477 : renderPlot in shinydoc with height > 400 overlaps subsequent c...
2014-05-14 09:06:15 -07:00
Joe Cheng
f21aefe9e9
Merge pull request #467 from yihui/cosmetic
...
Some cosmetic changes regarding NULL
2014-05-10 02:13:25 -07:00
Joe Cheng
8babbd69d8
Merge branch 'session-documentation'
...
Conflicts:
inst/staticdocs/index.r
2014-05-09 19:41:19 -07:00
Joe Cheng
11bf02eb56
Merge pull request #478 from rstudio/remove-literate-programming
...
Stop using literate programming
2014-05-09 19:39:58 -07:00
Joe Cheng
f5fa7d6d4b
Fix #477 : renderPlot in shinydoc with height > 400 overlaps subsequent content
2014-05-09 18:14:28 -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
e84a76cebd
Merge pull request #457 from yihui/feature/unsatisfied-input
...
A first attempt of the custom error type for unsatisfied input dependencies
2014-05-08 16:12:58 -07:00
Yihui Xie
342265be94
put the custom class(es) in the first as Hadley suggested
2014-05-08 15:04:49 -07:00
Joe Cheng
dee6fbcb8f
Stop using literate programming
...
Couldn't build from source without knitr installed, and knitr
is not a required dependency
2014-05-08 14:54:11 -07:00
Joe Cheng
ca27a9e31a
Validation refactoring
...
- Move validation logic from shinywrappers.R to utils.R
- Don't coerce validation results; fail if not FALSE, NULL, or character
- Reverse order of stopWithCondition args
2014-05-07 16:20:07 -07:00
Joe Cheng
18d0f45cf9
Refactoring/renaming of validation
...
- validateInput renamed to validate
- validateCondition renamed to need
- Removed ability to provide "bare" conditions. It is
still possible to fail validation silently by passing
FALSE as the second argument to need()
- Rather than using a two-element list to convey results,
use a single result protocol; NULL is success, FALSE is
silent failure, string is failure with message
- Tweak "missing input" semantics, add tests
2014-05-07 16:09:06 -07:00
Joe Cheng
00b40d64a1
Remove delayedAssign which causes problems for downstream packages
...
See comment on d7eb9b2d18
2014-05-06 20:40:57 -07:00
Joe Cheng
3a7d0a5a9f
Document session object
...
Also allow http handlers to return standard Rook responses instead of
httpResponse objects.
2014-05-06 11:56:23 -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
8f6d8cf0d6
Slider with label=NULL doesn't have tag classes attached
2014-05-05 14:00:43 -07:00
Joe Cheng
4d83596595
Merge pull request #465 from rstudio/feature/horizontal-layout
...
New layouts for horizontal placement
2014-05-05 13:10:26 -07:00
Yihui Xie
26b0836756
since NULL in tag() will be dropped, there is no need to check is.null(icon)
2014-05-03 01:11:32 -05:00
Yihui Xie
a87dc9bab2
cosmetic: both if (FALSE) expr and for-loops return NULL
2014-05-03 01:09:51 -05:00
Joe Cheng
fbda2db884
Only show special "No UI defined" message for shinyAppDir
2014-05-02 18:52:37 -07:00
Joe Cheng
2a229774ef
Merge pull request #463 from jcheng5/bugfix/faster-select
...
Massively faster selectInput
2014-05-02 17:31:38 -07:00
Joe Cheng
7920d66cd0
Separate option tags with newline
2014-05-02 17:26:27 -07:00
Yihui Xie
9f2dae7f3b
the logic of the last commit was not correct: we should not stop immediately on a non-condition object; instead, we still need to collect all messages on all conditions before we stop
2014-05-02 18:13:35 -05:00