Joe Cheng
c440c60bdf
Cleaner reactlog labels for reactives and outputs
...
Instead of showing the code, try to just show the name
of the reactive/output. Uses a fairly flaky algorithm
for determining the name of the reactive; will only
work in cases where the definition of the reactive
begins with "foo <- reactive({".
2015-10-28 14:37:00 -07:00
Joe Cheng
303fce5f15
Merge pull request #983 from wch/clear-checkbox
...
updateCheckboxGroup: allow clearing all choices. Fixes #981
2015-10-27 15:00:20 -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
c36a22ad5e
Add information about clearing choices
2015-10-23 16:04:17 -05:00
Winston Chang
49eba95a9c
Simplify function naming
2015-10-23 15:48:33 -05:00
Winston Chang
2dacc6ce40
Use cleaner method for generating function
2015-10-23 15:44:24 -05:00
Winston Chang
5ccf02f5c3
Merge pull request #984 from rstudio/update-jquery
...
Update to jQuery 1.11.3 and jQuery UI 1.11.4
2015-10-23 15:08:27 -05:00
Winston Chang
fd725552a5
Update to jQuery UI 1.11.4
2015-10-19 13:44:23 -05:00
Winston Chang
1e1a897970
Update to jQuery 1.11.3
2015-10-19 13:31:44 -05:00
Joe Cheng
59a643c006
Update metadata
2015-10-16 10:24:05 -07:00
Joe Cheng
1a492208e6
Merge pull request #982 from rstudio/feature/single-file-runapp
...
Let runApp accept single .R file parameters
2015-10-16 10:16:29 -07:00
Winston Chang
bc0a19f55d
updateCheckboxGroup: allow clearing all choices. Fixes #981
2015-10-16 11:44:09 -05:00
Jonathan McPherson
85e2e00bc4
let runApp accept single .R file parameters
2015-10-16 09:22:44 -07:00
Joe Cheng
93dd8bbf28
Merge pull request #980 from rstudio/joe/bugfix/select-value-escaping
...
Fix improperly escaped quote chars in select choices
2015-10-15 12:56:54 -07:00
Joe Cheng
2f15a219df
Fix improperly escaped quote chars in select choices
2015-10-15 12:49:50 -07:00
Yihui Xie
4fc73b1344
A news item for #968
2015-10-15 13:45:00 -05:00
Joe Cheng
48b56ba08d
Merge pull request #968 from yihui/bugfix/961-unicode
...
A more fundamental fix to the Unicode issue
2015-10-15 11:17:45 -07:00
Joe Cheng
94ca733c7c
Merge pull request #967 from rstudio/joe/bugfix/placeholder
...
Add placeholder parameter to textInput
2015-10-15 11:15:10 -07:00
Winston Chang
4af2436a0e
Rename 'func' to more descriptive name
2015-10-14 16:40:33 -05:00
Winston Chang
20c2bb9d50
Simplify try(tryCatch()) to just tryCatch()
...
This also has the benefit of printing a more helpful error message at
the console. It now indicates which output an error occurred in.
2015-10-14 16:40:33 -05:00
Winston Chang
33bac0db3c
Add function relabeler and relabel outputs
2015-10-14 16:40:33 -05:00
Winston Chang
8893db9098
Update NEWS
2015-10-12 22:39:51 -05:00
Winston Chang
c46658a5c8
Correctly handle unit and unit.list objects. Closes #962
2015-10-12 22:31:32 -05:00
Joe Cheng
5f651aed3e
LICENSE typo
2015-10-12 12:32:00 -04:00
Joe Cheng
fa7c034d16
Merge pull request #955 from rstudio/joe/feature/reactlog-bysession
...
Fix couple of issues with reactlog
2015-09-24 09:54:35 -07:00
Joe Cheng
ca870ccd75
Merge pull request #966 from rstudio/joe/bugfix/showcase-highlighting
...
Fix highlighting of reactives in showcase mode
2015-09-24 09:54:01 -07: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
Joe Cheng
6c6775376e
Add placeholder parameter to textInput
2015-09-23 18:28:08 -07: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
6718d377bb
Fix and enhance reactlog
...
* Reactlog shortcut was broken due to reactlog.js not being included in
the gruntfile
* Reactlog has always shown every reactive event since the beginning of
the process (or at least since options(shiny.reactlog=TRUE)). This
commit makes it so Ctrl+F3 invocation only shows reactives that either
belong to no session (e.g. observers and reactives declared at the top
of server.R), or belong to this session.
2015-09-13 02:46:52 -07:00
Joe Cheng
d4e3329d7a
Fix highlighting of reactives in showcase mode
...
This has been broken since we switched to jsonlite. Reactives
don't highlight because their srcref is in an S3(?) class that
jsonlite doesn't recognize, whereas RJSONIO would treat it as
a numeric vector.
2015-09-12 20:20:13 -07:00
Joe Cheng
99295f0983
Bump version, update NEWS
2015-09-09 22:13:45 -07:00
Winston Chang
3606c36cb9
Merge pull request #950 from rstudio/joe/feature/grunt-clean
...
Add 'grunt clean' to delete shiny build artifacts
2015-09-09 15:49:02 -05:00
Winston Chang
3d5c184acc
Merge pull request #949 from rstudio/joe/feature/shared-brush-id
...
Allow shared brush IDs
2015-09-09 15:48:43 -05:00
Joe Cheng
9e03b17498
Add 'grunt clean' to delete shiny build artifacts
2015-09-09 12:19:43 -07:00
Joe Cheng
129714b044
Allow shared brush IDs
2015-09-09 12:12:47 -07:00
Joe Cheng
67823556d2
Merge pull request #939 from yihui/bugfix/selectize-selected
...
Fixes #929 : defer setValue() for selectize until the options have been loaded from server
2015-09-09 12:10:03 -07:00
Yihui Xie
273e71e3c4
run grunt
2015-09-09 13:38:51 -05:00
Yihui Xie
076ac26929
call setValue() only once
...
otherwise every time an Ajax response is returned (e.g. during searching), the value is set to data.value
2015-09-09 13:29:37 -05:00
Yihui Xie
5a022b0a2c
upgrade selectize.js from 0.11.2 to 0.12.1 to fix the ordering issue in #929
...
also fixes #865
2015-09-09 13:29:37 -05: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