Winston Chang
7948a0a4fa
Merge pull request #993 from rstudio/joe/feature/reactlog-labels
...
Cleaner reactlog labels for reactives and outputs
2015-10-30 11:57:57 -05:00
Joe Cheng
f1de132a2a
Merge pull request #988 from rstudio/joe/feature/namespaces
...
Shiny modules
2015-10-28 15:22:57 -07:00
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
3d13c39a4c
Also override registerDataObj (essential for data table, DT, and selectize server mode)
2015-10-27 16:33:46 -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
Joe Cheng
86c67de8ff
Add session$ns(); some light refactoring; add tests; fix staticdocs
2015-10-20 23:49:24 -07:00
Joe Cheng
dac7eb5997
Simplify modules, by removing moduleUI and path arguments
2015-10-20 15:12:11 -07: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
Joe Cheng
bb09885237
Add callModule/moduleUI functions; scope sendInputMessage
2015-10-05 14:56:01 -04:00
Joe Cheng
3ff6aaa6db
Add namespacing functionality
...
- Need to carefully review ShinySession, think about
each and every public method and whether it should
be passthrough or do something different for a
namespaced session.
- It would be nice if we do the namespace splitting
at the server.R level and actually have numerous
reactivevalues objects for inputs, one for each
namespace. This will make the reactive hooks for
names() and reactiveValuesToList() correct, as
right now they will oversubscribe if you're in a
namespaced session. Also it would prevent outer
sessions from seeing the values of their child
namespaces. (Though is that good or bad...?)
2015-10-02 12:51:18 -07: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
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
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
Winston Chang
241a482236
Add explicit namespace to non-base functions
2015-08-04 12:30:41 -05:00
Winston Chang
874fcb12a1
Remove uploaded files when session ends. Closes #798
2015-07-01 13:32:06 -05:00
Winston Chang
fdacb4fe7d
Add shiny.minified option for minified JavaScript. Closes #826
2015-06-01 20:58:10 -05:00
Joe Cheng
15af660424
Depend on methods so Rscript doesn't fail
2015-05-21 09:56:16 -07:00
Joe Cheng
48cfeca220
Merge pull request #797 from rstudio/joe/input-logging
...
Add session$onInputReceived
2015-04-30 22:10:21 -07:00
Winston Chang
55621b7826
Use NULL for session$user and $groups
2015-04-17 13:23:50 -05:00
Yihui Xie
c6ac1474d4
Treat the output of toJSON() as a verbatim JSON string, and do not double-encode it
...
https://github.com/jeroenooms/jsonlite/commit/6fd201b3ad
also see ramnathv/htmlwidgets#28
2015-04-08 21:38:15 -05:00
Joe Cheng
3321e95b54
Add session$onInputReceived
2015-03-26 16:04:04 -07:00
Winston Chang
41455a008b
Update toJSON for more RJSONIO compatibility
2015-03-20 14:58:28 -05:00
Yihui Xie
a4a5c61fef
use ISO8601 and UTC for POSIX[c|l]t time by default
2015-03-19 16:17:33 -05:00
Winston Chang
e4a211ba02
Send HTTP errors as UTF-8
...
This fixes an issue related to #736 .
2015-03-06 10:27:30 -06:00
Joe Cheng
7ab373c942
Merge pull request #756 from rstudio/feature/port-option
...
Add shiny.port option
2015-03-06 01:41:00 -06:00
Winston Chang
23da559d26
Add shiny.port option
2015-03-04 20:15:43 -06: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
a73e72f267
Add backward compatibility for shinysession$session ( Fixes #752 )
2015-03-04 11:13:52 -06:00
Winston Chang
4a806db8ae
toJSON: special case for length-1 atomic vectors
2015-02-27 21:42:43 -06:00
Winston Chang
51130793fe
Assign request object in self
...
The session object is now gone, so the appropriate place to assign `request`
is in `self`.
2015-02-27 15:34:55 -06:00
Winston Chang
1c57ef5931
Remove leading dot from private item names
2015-02-27 15:02:09 -06:00
Winston Chang
0f642fe3ad
Add class attribute to ShinySession object
2015-02-27 15:02:09 -06:00
Winston Chang
46844b516a
Remove unneeded 'session' object
...
The 'session' object is no longer needed. Now that the ShinySession object
has proper public and private members, that object can be passed directly.
2015-02-27 15:02:09 -06:00
Winston Chang
b9cef228d9
Use explicit 'self', and make ShinySession portable
2015-02-27 15:02:09 -06:00
Winston Chang
fd71d04000
Use explicit 'private'
2015-02-27 15:02:09 -06:00
Winston Chang
bedb811621
Remove leading dots from public methods
2015-02-27 15:02:09 -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
Joe Cheng
3e1732b9c0
downloadHandler temp files should have same extension as final download file
2015-02-01 08:37:44 -08:00
Winston Chang
deffc90531
Remove remaining RJSONIO references
2015-01-22 13:15:01 -06:00
Winston Chang
ab4dc641af
Make jsonlite::toJSON convert all objects
...
By default, toJSON won't convert objects with classes that aren't registered
explicitly. This caused errors when converting html_dependency objects.
Setting this option causes jsonlite to convert all objects, including
html_dependency objects.
2015-01-21 15:09:12 -06:00
Winston Chang
075557929a
Switch from RJSONIO to jsonlite
2015-01-21 14:12:53 -06:00
Winston Chang
855347a5d3
Add documentation for global options
2014-10-29 11:30:28 -05:00
Joe Cheng
1223d3a2b3
Merge pull request #604 from rstudio/bugfix/observer-errors
...
Better handling of observer errors
2014-10-28 13:12:13 -07:00
Yihui Xie
b795d7de4e
use encodeURI[Component]() and decodeURIComponent() from httpuv
2014-10-20 18:15:25 -05:00
Sean Murphy
9252d1290c
Update shiny.R
...
Update link to shiny tutorial (http://shiny.rstudio.com/tutorial/ )
2014-10-12 22:16:28 +10:00
Joe Cheng
1bee6aece7
Better handling of observer errors
...
- Unhandled observer error no longer stops flushReact in mid-flush
- Observer errors are now warnings that include the observer label
- Session is explicitly being closed by Shiny instead of by httpuv
Also:
- session$close() is now public and closes the session
2014-10-02 11:13:23 -07:00
Yihui Xie
698ad2b890
I do not see why this needs to be changed
2014-09-25 17:07:22 -05:00