Winston Chang
fb38ab4ef2
Improve tick and step heuristics
2014-11-26 14:19:06 -06:00
Winston Chang
6dd4e7676d
Add deprecation message for format argument
2014-11-26 14:19:05 -06:00
Yihui Xie
c8efd31d08
encode the JSON response for DataTables/selectize with UTF-8
...
to make sure multibyte characters in DataTables/selectize work
2014-11-13 10:27:56 -06:00
Yihui Xie
5f60d09d0b
per-column escaping
2014-10-28 16:11:06 -05:00
Yihui Xie
a05abda25c
escape HTML entities to avoid XSS attacks in DataTables
...
BTW, per recommendation of http://datatables.net/manual/server-side , the parameter `draw` is coerced to integer
2014-10-28 16:11:06 -05:00
Yihui Xie
b795d7de4e
use encodeURI[Component]() and decodeURIComponent() from httpuv
2014-10-20 18:15:25 -05:00
Winston Chang
b4d80b467a
Merge pull request #610 from yihui/bugfix/DT-POST
...
fixes #605 : send DT requests via POST instead of the default GET
2014-10-20 15:11:59 -05:00
Joe Cheng
b85b1e95b4
Fix documentation bug in ?validate
2014-10-14 12:30:11 -07:00
Yihui Xie
049bd85b29
fixes #605 : send DT requests via POST instead of the default GET
2014-10-07 17:17:48 -05:00
trestletech
f98aa3f12b
Added a clarifying comment to serverInfo.
2014-09-04 16:30:35 -05:00
Winston Chang
6923a11038
Don't add class attribute for internal-facing classes
...
The class attribute is unneded for these classes, and this improves
performance.
2014-08-28 20:21:05 -05:00
Winston Chang
83fa1ea4a6
Merge pull request #580 from wch/r6class
...
Migrate from reference classes to R6
2014-08-28 16:21:39 -05:00
Winston Chang
7ac84b6a91
Switch from refclasses to R6
2014-08-28 15:45:44 -05:00
Yihui Xie
c3e78f41b0
implement case-[in]sensitive searching on the server side ( #400 )
...
grep2() was invented to deal with these situations:
1. case-insensitive and fixed matching
2. when the regex is incomplete
2014-08-28 15:38:47 -05:00
Yihui Xie
22fdc90159
add instructions for upgrading from DataTables 1.9 to 1.10
2014-08-21 14:24:39 -05:00
Yihui Xie
8aa32fff34
get rid of the ugly trick eval(parse()), and use a plain loop to create a nested list
2014-08-21 12:10:26 -05:00
Yihui Xie
ea8ca8ea1e
new option names for DataTables from Hungarian to camelCase notations
2014-08-21 12:10:26 -05:00
Yihui Xie
ed9ca04c58
support [] in query strings like $_GET in PHP, because server-side DataTables 1.10 passes parameters as arrays
...
e.g. columns[0][search][value]=foo&columns[1][search][value]=bar
we need list(columns = list(`0` = list(search = list(value = 'foo')), `1` = ...)
2014-08-21 12:10:26 -05:00
Yihui Xie
093fbaa178
the names of keys and values are useless
2014-08-21 12:10:26 -05:00
Yihui Xie
c7ee37804c
fix a bug when the number of rows of data to show is zero
...
all(logical(0)) == TRUE!
2014-08-21 11:35:37 -05:00
Winston Chang
8c584ae0e0
Refactor file.path.ci, add find.file.ci and file.exists.ci
2014-08-06 21:19:46 -05:00
Winston Chang
3f0ab9a88a
Fixes to file.path.ci
...
There were two bugs, which are fixed:
* It didn't find files starting with '.' because `all.files` defaults to FALSE.
* It was too loose with file matching - the `pattern` argument to list.files
is a regexp, not string literal.
2014-08-06 12:19:08 -05:00
Yihui Xie
ab618235f1
one more check before we use UTF-8: see if there are embedded nul's
2014-07-24 14:48:23 -05:00
Yihui Xie
ffead9ed70
add explanations of skipping *nix when checking encoding, and point to the shiny dev center article
2014-07-24 11:57:46 -05:00
Yihui Xie
983e7e9b75
warn against the byte order mark if exists; fixes #545
2014-07-22 16:22:50 -05:00
Yihui Xie
af978a68e3
tweak the warning message
...
and simply stop() in case the user has set option(encoding = 'UTF-8')
2014-07-17 14:39:21 -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
Yihui Xie
6b8679454d
factor out .Platform$OS.type == 'windows' as isWindows()
2014-07-15 16:04:02 -05:00
Yihui Xie
8063f66958
let's read ui.R, server.R, README.md, and DESCRIPTION also with UTF-8
...
the reason for this is that htmltools::htmlEscape() uses gsub(..., x, fixed =
TRUE), which does not work on Windows if x is encoded in UTF-8; fixed = TRUE
only works with the native encoding
2014-07-10 15:59:42 -05:00
Joe Cheng
3458d924ca
Calling getOption() with default is slow
...
This has a measurable effect in apps with lots of reactives.
Reported by Aran Lunzer
2014-07-06 12:10:51 -07:00
Yihui Xie
b2ab3797aa
the cachedSource() function is not used anywhere, so perhaps we can remove it
2014-06-13 18:08:16 -05:00
Yihui Xie
6450927192
stats may not have been loaded in the event of .onLoad()
2014-06-09 10:56:36 -05:00
Yihui Xie
3a0a11d55a
introduce an equivalent function to achieve set.seed(NULL) in R 2.15.x
2014-06-02 16:14:22 -05:00
Yihui Xie
7eb8ddf372
fixes #456 : use .Random.seed only if it exists in the global environment
...
e.g. the expr may not trigger the creation of .Random.seed, such as set.seed(NULL) under R 2.15.x, which will fail
2014-06-02 16:13:37 -05:00
Yihui Xie
cb383d4f62
serverInfo() returns list(shinyServer=FALSE) by default, per suggestion of @trestletech
2014-06-02 15:18:54 -05:00
Joe Cheng
53a401f847
Merge pull request #495 from yihui/feature/serverInfo
...
add functions serverInfo() (exported) and setServerInfo() (not exported)
2014-06-02 09:16:51 -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
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
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
Yihui Xie
01c24a578b
add functions serverInfo() (exported) and setServerInfo() (not exported)
...
we can call shiny:::setServerInfo() in Shiny Server before launching an app, so that the app author can make use of the info to decide the behavior of the app
2014-05-16 13:22:22 -05: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
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
Yihui Xie
342265be94
put the custom class(es) in the first as Hadley suggested
2014-05-08 15:04:49 -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
Yihui Xie
07bed0c7c7
factor out a function columnToRowData() so both updateSelectInput() and selectizeJSON() can use it
2014-04-25 02:37:45 -05:00
Joe Cheng
59dbca250f
Fix roxygen
2014-04-21 16:50:06 -07:00
Joe Cheng
45669cacb1
Merge pull request #434 from jcheng5/private-random
...
Refactor private random seed code
2014-04-15 15:24:41 -07:00
Yihui Xie
d9be6f1d2e
implementing the server-side selectize input
...
also added a new method shinysession$registerDataObj(), which was designed to be a general data retrieval method: we can store arbitrary data objects as "downloads", and return arbitrary http response based on the filter function; see renderDataTable() and updateSelectizeInput() for two examples
2014-04-13 00:02:08 -05:00
Joe Cheng
314d433f86
Merge pull request #436 from rstudio/feature/shiny-docs
...
Improved support for R Markdown Shiny documents
2014-04-11 15:43:43 -07:00