Yihui Xie
35090251ef
basically library(pkg) = if (!require(pkg)) stop()
2014-03-24 23:49:34 -05:00
Yihui Xie
338afb4893
change the deprecated @S3method to @export
2014-03-24 23:46:46 -05:00
Winston Chang
93e276bd9b
Fix capitalization of markdown package
2014-03-24 12:35:12 -05:00
Winston Chang
a69517519c
Add more information to selectInput docs
2014-03-21 16:30:25 -05:00
Jonathan McPherson
fc9bedacc0
guard against null source references
2014-03-20 16:00:51 -07:00
Jonathan McPherson
795eeee809
handle no-argument output calls gracefully
2014-03-20 15:46:25 -07:00
Joe Cheng
6d7818962e
Redirect on no trailing slash
2014-03-20 10:14:02 -07:00
Joe Cheng
068517c933
Prevent multiple apps from stomping on server func
2014-03-20 09:09:54 -07:00
Joe Cheng
5b030200df
initial prototyping of subapps
2014-03-20 08:49:18 -07:00
Joe Cheng
d7eb9b2d18
Fix 'Error in Context$new : could not find function "loadMethod"'
...
This warning was happening to dependent packages on R CMD check.
The problem is due to delayedAssign; it appears this can't be used safely, at least not to define package-level symbols that contain S4 or reference class objects.
If you call this in a package's .R file:
`delayedAssign("hello", stop("boom"))`
but don't refer to "hello" anywhere, when you run R CMD check on a dependent package you'll see the error.
If the expression needs the methods package (like Context$new()), you'll get an error unless the dependent package itself depends on methods.
2014-03-19 09:49:33 -07: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
Joe Cheng
2bd201de63
Refactor server logic into separate file
2014-03-17 16:08:59 -07:00
Yihui Xie
95c30649d3
fixes #416 : use tags$code() to escape the code in showcase mode
...
and format(..., indent = FALSE) to prevent indentation of <code>
2014-03-11 22:40:16 -05:00
Joe Cheng
69c0414791
Make showcase mode work with .r files
2014-03-11 09:08:20 -07:00
Yihui Xie
8dd6dabe50
add selectize=TRUE to selectInput(), but disable deletion for single input
...
hopefully this is a good compromise for #404
2014-03-03 12:02:39 -08:00
Joe Cheng
c090c6adf9
Merge pull request #410 from wch/faster-tags-2
...
Faster tags
2014-02-28 09:43:57 -08:00
Yihui Xie
84da0befcd
fixes #306 : remove the possible trailing slash under Windows
...
the cause:
normalize('foo', '/') => C:/foo
normalize('foo/', '/') => C:/foo/
under Windows. For unix, the trailing slash will always be removed in normalizePath()
2014-02-27 18:17:50 -06:00
Yihui Xie
267751c8b9
we have specified winslash='/' before, so it is impossible that this char is \
2014-02-27 17:59:14 -06:00
Winston Chang
8add9f7188
Restructure logic and simplify
2014-02-27 16:02:30 -06:00
Yihui Xie
a100b0991b
closes #119 : we do not have to do this special treatment to the label for sliderInput, and no other inputs do as.character() for their labels
...
if users pass an HTML() object to the label argument, the HTML will be preserved instead of being escaped
2014-02-25 23:58:59 -06:00
Winston Chang
9ce9c5e535
More tag writing tweaks
2014-02-25 23:16:50 -06:00
Yihui Xie
b2d004ca1a
closes #31 : try to avoid scientific notation of numbers
2014-02-25 22:58:08 -06:00
Joe Cheng
60e355c4f5
Faster singleton detection
2014-02-25 18:56:47 -08:00
Yihui Xie
f23f2ff0a0
the url of selectiz.js is already in Details
2014-02-25 19:25:48 -06:00
Yihui Xie
c1b18098f1
Revert "add selectize=TRUE to selectInput(), instead of adding a separate function selectizeInput(), per suggestion of @jjallaire"
...
This reverts commit d3115a3bf3 and closes #404
2014-02-25 19:25:33 -06:00
Joe Cheng
31c39592e3
Faster tag rendering
2014-02-25 16:37:54 -08:00
Yihui Xie
1ecec24727
add a callback argument in renderDataTable() so that users can have access to the DT object
2014-02-25 15:44:00 -06:00
Yihui Xie
607841e947
cosmetic changes
2014-02-25 15:42:36 -06:00
Yihui Xie
80ce7a36f8
make it possible to filter numeric columns based on the specified range of the form "lower,upper"
2014-02-24 23:59:12 -06:00
Yihui Xie
705a8666be
iDisplayLength == -1 means "display all data" ( #400 )
...
we can use this feature via several ways, e.g.
- renderDataTable(..., options = list(bPaginate = FALSE))
- iDisplayLength = -1
- aLengthMenu = list(c(10, 30, -1), list(10, 30, 'All'))
2014-02-24 23:31:28 -06:00
Yihui Xie
9167905118
respect the bRegex option (as well as bRegex_j for individual columns)
...
however, this option is not part of the initialization options, so actually users can never use it...
#400
2014-02-24 23:29:10 -06:00
Yihui Xie
9a7b042594
respect the individual bSearchable_j options in datatables
2014-02-24 21:02:25 -06:00
Joe Cheng
ba510884f2
Avoid using browser URL with host of 0.0.0.0
...
(reviewed by @jmcphers)
2014-02-21 14:58:19 -08:00
Yihui Xie
88d2425ca3
respect the bFilter option: when it is false, do not show the search boxes
2014-02-20 18:21:36 -06:00
Yihui Xie
7117f9e058
closes #392 : options in renderDataTable() can also take a function to return a list
2014-02-20 16:55:44 -06:00
Yihui Xie
c21c407416
a few cosmetic changes
...
= to <-, and camelCase instead of under_score
2014-02-20 16:44:09 -06:00
Yihui Xie
6239466da8
klutometis/roxygen#191 has been fixed, so no longer need explicit @usage
2014-02-20 14:30:51 -06:00
Yihui Xie
7746d75582
bug fix: when evalOptions is of length 1, toJSON() converts it to a scalar; we need to use I() to make sure it is always a vector so that we can later $.each()
2014-02-20 14:24:51 -06:00
Joe Cheng
e0ae931ddd
Merge pull request #402 from rstudio/bugfix/ie8-compatibility
...
Bugfix/ie8 compatibility
2014-02-20 10:24:10 -08:00
Yihui Xie
eb8fec7f2d
when searching is turned on, we need to make sure the filtering indices i are smaller than nrow(filtered data) instead of original data
...
this fixes the bug reported at https://groups.google.com/forum/#!topic/shiny-discuss/xk2Gh7KJQBM
2014-02-19 23:09:25 -06:00
Yihui Xie
2e16fa1d70
fixes #401 : pass numbers as character strings in updateNumericInput() to preserver numeric precision when possible
2014-02-19 22:11:39 -06:00
Jonathan McPherson
1b856c4909
use IE8-compatible events; turn off highlighting in IE8
2014-02-19 16:45:58 -08:00
Joe Cheng
c0cdc4083c
Merge pull request #397 from yihui/select2
...
Selectize.js
2014-02-19 15:45:56 -08:00
Joe Cheng
84a1d8d25e
Add comment about format.shiny.tag's indent param
2014-02-19 15:21:28 -08:00
Yihui Xie
d3115a3bf3
add selectize=TRUE to selectInput(), instead of adding a separate function selectizeInput(), per suggestion of @jjallaire
2014-02-19 12:04:23 -06:00
Yihui Xie
8f24f1b4d6
localize es5-shim.js
2014-02-19 11:58:34 -06:00
Yihui Xie
cf14c6b1e9
add es5-shim.js for IE8
2014-02-19 11:58:34 -06:00
Yihui Xie
49da114caa
add a note about the I() options in selectizeInput()
2014-02-19 11:58:34 -06:00
Yihui Xie
29701d7295
apply checkAsIs() to selectizeInput(), and store the names in data-eval in the script
...
note we switched the order of {} and config.text() in $.extend(), so that users can overwrite the default options like labelField, valueField, ...
2014-02-19 11:58:33 -06:00
Yihui Xie
16279695a9
factor out the code to determine which options should be evaluated into a utility function checkAsIs(), so that it can be applied to selectizeInput() as well
2014-02-19 11:58:33 -06:00