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
9afcd2a411
don't declare encoding on the anonymouse file connection
...
otherwise writeLines(useBytes = TRUE) may not work (#961 )
2015-09-22 01:11:38 -05:00
Yihui Xie
0afd1649c1
textConnection() can be lossy; use an anonymous file connection instead to preserve UTF-8 characters
2015-09-22 01:11:37 -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
79223bddc5
make sure the UI HTML is rendered into a connection with UTF-8 encoding
2015-09-21 22:25:12 -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
4adc3088d1
fixes #961 : the JSON string from jsonlite::toJSON() is always encoded in UTF-8, so there is no need to re-encode it
...
actually re-encoding the string with native encoding can be lossy (some UTF-8 characters may not be representable in the native encoding)
2015-09-21 21:46:11 -05:00
Yihui Xie
79dd7e1bf5
shiny requires R >= 3.0.0
2015-09-21 21:44:03 -05:00
Joe Cheng
129714b044
Allow shared brush IDs
2015-09-09 12:12:47 -07:00
Yihui Xie
9ab493a81f
make sure mop is numeric
...
it is funny that head(1:11,'100') produces a bunch of NA's, but head(1:11,'12') does not
2015-09-09 13:29:37 -05:00
Yihui Xie
dfc1f32595
Fixes #929 : defer setValue() for selectize until the options have been loaded from server
...
Previously I was using a hack to set the selected value of selectize, i.e. add the selected option(s) to selectize via addOptions() (because the selected option(s) may not have existed); this hack can be removed and we can set the value in the `success` callback of the Ajax request, by which time the options will be available
2015-09-09 13:29:37 -05:00
Winston Chang
d9d9e0b33f
Add info about printing ggplot objects
2015-09-08 15:07:40 -05:00
Yihui Xie
29c545d2e3
Bump fontawesome version after #932
2015-09-04 20:53:54 -05:00
Yihui Xie
b0676b8b31
Trigger shiny:recalculated after the calculation is done
2015-08-31 16:38:46 -05:00
Yihui Xie
83c3656d29
Events shiny:visualchange, shiny:conditional, and shiny:recalculating
2015-08-31 15:58:05 -05:00
Yihui Xie
acad9354a6
Fixes #933 : make sure type is of length one
2015-08-26 10:48:38 -05:00
Yihui Xie
619aa4f05a
Events shiny:busy and shiny:idle
...
Keep track of the number of observer callbacks during addPendingFlush() and executeFlushCallbacks(). Send a custom message when the number is 0.
2015-08-21 16:12:45 -05:00
Yihui Xie
ced4060b5c
fixes #902 : add jQueryUI dependency when the drag_drop plugin is used in selectize
2015-08-06 16:59:51 -05:00
Winston Chang
0ac87930c8
Add support for HTTP HEAD requests
2015-08-04 22:58:21 -05:00
Winston Chang
241a482236
Add explicit namespace to non-base functions
2015-08-04 12:30:41 -05:00
Winston Chang
2abaffafcf
Move imageOutput docs to plotOutput
2015-08-04 12:23:06 -05:00
Joe Cheng
f89c44e899
Fix runGist
...
Looks like GitHub changed the format of gist downloads from .tar.gz
to .zip
2015-07-22 10:30:57 -07:00
Yihui Xie
5ec6ffb30a
Merge pull request #905 from rstudio/joe/doc-tweaks
...
Doc tweaks (fixes #898 )
2015-07-21 12:51:28 -05:00
Winston Chang
d9c7f21c02
Make updateSliderInput work with date/datetimes. Fixes #904
2015-07-21 12:32:18 -05:00
Winston Chang
926e508b8d
Fix updateSliderInput example code
2015-07-21 12:31:31 -05:00
Winston Chang
ac83772945
Don't use scientific notation for sending slider values
2015-07-21 12:31:17 -05:00
Joe Cheng
cddf5cf70f
Doc tweaks
2015-07-21 10:15:04 -07:00
Winston Chang
cfae8f4fc6
Update to ion.rangeSlider 2.0.12
2015-07-20 14:09:26 -05:00
Joe Cheng
3e9e6a1389
Merge pull request #885 from rstudio/slider-improvements
...
Slider improvements
2015-07-16 10:21:25 -07:00
Joe Cheng
9788450c08
Merge pull request #874 from wch/file-remove
...
Remove uploaded files when session ends. Fixes #798
2015-07-16 10:02:27 -07:00
Winston Chang
9d942b78ef
Merge pull request #881 from yihui/updateNavbarPage
...
Add two aliases of updateTabsetPanel(): updateNavbarPage() and updateNavlistPanel()
2015-07-03 11:00:33 -05:00
Winston Chang
4cd5357241
Set dragRange=TRUE as the default
2015-07-02 20:25:42 -05:00
Winston Chang
0e3938da79
Add timezone support
2015-07-02 16:50:43 -05:00
Winston Chang
ec9bfc4731
sliderInput: add timeFormat argument
2015-07-02 16:50:43 -05:00
Winston Chang
9b91ebb8d2
Add strftime Javascript library
2015-07-02 16:50:43 -05:00
Winston Chang
da3f2367d7
Add range dragging functionality
2015-07-02 16:50:43 -05:00
Winston Chang
17cdeec34b
Add Date and POSIXt support to sliders
2015-07-02 16:50:43 -05:00
Winston Chang
3446afd087
Move input handlers to separate file
2015-07-02 16:50:43 -05:00
Winston Chang
b12fef652c
Update to ionRangeSlider 2.0.10
2015-07-02 16:50:43 -05:00
Winston Chang
21c7193281
Remove unneeded copy of normalize.css
2015-07-02 12:48:16 -05:00
Yihui Xie
a5e64274a2
Add two aliases of updateTabsetPanel(): updateNavbarPage() and updateNavlistPanel()
...
https://groups.google.com/d/msg/shiny-discuss/8VctqPqeurw/uAQIBvA1CpAJ
2015-07-02 01:37:14 -05:00
Winston Chang
3817202875
Make sure that directory removal is safe
2015-07-01 13:41:54 -05:00
Winston Chang
874fcb12a1
Remove uploaded files when session ends. Closes #798
2015-07-01 13:32:06 -05:00
Winston Chang
e0c5783703
Refactor fileUpoadContext to use private members
2015-07-01 13:32:05 -05:00
Winston Chang
a57e037b05
Fix docs for submitButton
2015-06-26 16:40:32 -05:00
Winston Chang
7c20e865a5
Add width option to input functions. Closes #834 , closes #589
2015-06-18 13:12:49 -05:00
Winston Chang
79267d4e12
Move input functions to separate files
2015-06-18 10:47:00 -05:00
Joe Cheng
7f442f4206
Un-deprecate data table functions until DT stabilizes
2015-06-11 23:27:21 -07:00