Joe Cheng
a13657ac23
Work properly with non-call sys.call() objects
2015-11-11 15:54:03 -08:00
Joe Cheng
d6c95a9e89
wip
2015-11-11 12:14:42 -08:00
Winston Chang
712c4cb985
Update download to work correctly with R 3.2.2 on Mac. Fixes #996
2015-10-30 12:08:48 -05:00
Joe Cheng
ce9e95f256
Fix parseQueryString example (thanks Chris Beeley)
2015-10-29 16:15:47 -07:00
Joe Cheng
46c8bfdd34
Merge pull request #979 from wch/profiling-enhancements
...
Enhancements to help profiling
2015-10-27 14:59:59 -07:00
Winston Chang
2dacc6ce40
Use cleaner method for generating function
2015-10-23 15:44:24 -05:00
Winston Chang
33bac0db3c
Add function relabeler and relabel outputs
2015-10-14 16:40:33 -05:00
Yihui Xie
89fe2ff217
a more fundamental fix of the Unicode issue
...
for R <= 3.2.2, Unicode chars don't work for shiny mainly because we want to
preserve the source reference, and unfortunately srcfilecopy() fails because of
the bug https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16264
here I use lines = '' to get around the bug, and assign the source lines to
the srcfile object later, so there is no grep("\n", multibyte_chars) occuring
I also replaced source() with a custom version, which is much simpler and works
better with Unicode chars
2015-09-23 23:00:20 -05:00
Yihui Xie
bd3b3881d8
after reading a file as UTF-8, try to convert it to native encoding on Windows only if the conversion is not lossy
2015-09-23 18:33:01 -05:00
Yihui Xie
078189599c
the check is.na(iconv(x, 'UTF-8')) does not really make sense
...
e.g. iconv('\u2264', 'UTF-8') converts the smaller than or equal sign to an
equal sign in the English (US) locale, which is lossy
we just assume the input is UTF-8 instead, and do not fall back to native
encoding any more
2015-09-23 18:31:16 -05:00
Yihui Xie
0947a63103
make sure writeLines() does not convert text to native encoding
2015-09-22 01:11:32 -05:00
Yihui Xie
1871dd6b71
convert the result of readLines() to UTF-8 using enc2utf8() instead, since enc2native() can be lossy
2015-09-21 21:49:12 -05:00
Yihui Xie
79dd7e1bf5
shiny requires R >= 3.0.0
2015-09-21 21:44:03 -05:00
Winston Chang
241a482236
Add explicit namespace to non-base functions
2015-08-04 12:30:41 -05:00
Joe Cheng
395d1cee70
Ensure that callbacks fire in a FIFO order
...
Version bump required so Leaflet can detect this fix
2015-05-20 13:29:56 -07:00
Yihui Xie
54e02e412c
make sure q$search[['value']] is not of length zero
2015-05-19 16:14:30 -05:00
Yihui Xie
0f70b5662c
remove the list of content types and use mime::guess_type()
...
also fixes #575
2015-03-04 19:58:37 -06:00
Winston Chang
1c72601123
Fix downloading of files with no extension. Fixes #575
2015-03-04 15:50:51 -06:00
Winston Chang
defedda891
Switch from RJSONIO to jsonlite (again)
2015-02-23 16:41:36 -06:00
Winston Chang
040ae293fb
Revert switch to jsonlite
...
This reverts commits deffc90 , ab4dc64 , and 0755579 , returning to RJSONIO.
The purpose of this is to prepare for a maintenance release for 0.11
without the switch to jsonlite, to reduce the risk of new bugs.
2015-02-06 10:53:54 -06:00
Winston Chang
a4d567e44d
Merge pull request #704 from wch/html-replace2
...
htmlOutput: allow custom container function
2015-02-04 13:30:19 -06:00
Winston Chang
c930cce914
Check for unnamed arguments in ...
2015-02-03 15:55:24 -06:00
Dean Attali
563b986591
parseQueryString returns a list, not a vector
2015-01-24 20:42:34 -08:00
Winston Chang
075557929a
Switch from RJSONIO to jsonlite
2015-01-21 14:12:53 -06:00
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