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
Yihui Xie
e1a8e119bf
Add import for mime
2014-09-25 14:51:34 -05:00
Joe Cheng
4712b72019
Force IE8 uploads to kick off reactive flush
2014-09-25 14:28:42 -05:00
Yihui Xie
2d162b0d4e
parse the multipart form data POSTed and save the file info in .input
2014-09-25 14:28:42 -05:00
Yihui Xie
67ab5fbc8a
return a valid response temporarily
2014-09-25 14:28:42 -05:00
Yihui Xie
bcd7195bf5
use uploadie instead of upload2 because of regexec("^/([a-z]+)/([^?]*)" earlier ([a-z]+ won't match upload2)
2014-09-25 14:28:42 -05:00
Joe Cheng
b505507c35
file upload via <iframe> for IE8
2014-09-25 14:28:42 -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
Yihui Xie
cf135dd658
Revert "Revert "Remove caTools dependency""
...
This reverts commit 8d4b9076f7 .
The main concern for the previous reversion was the Glimmer/Spark servers (Rcpp requires R >= 3.0.0). We are able to install Rcpp/httpuv under R 2.15.3 (https://gist.github.com/yihui/43a68d811dade1d9e828 ), so it is possible to upgrade Rcpp/httpuv/shiny on Glimmer/Spark. On the other hand, we are going to shut down Glimmer/Spark by the end of this year anyway, and move to ShinyApps.io, which makes this R 3.x issue even less of concern.
2014-08-28 16:55:03 -05:00
Winston Chang
7ac84b6a91
Switch from refclasses to R6
2014-08-28 15:45:44 -05:00
Winston Chang
2d3dd7d91d
Field type should be a string
2014-08-27 14:09:39 -05:00
Winston Chang
3ede9396da
Merge branch 'progress'
...
Conflicts:
NAMESPACE
2014-08-20 11:31:28 -05:00
Joe Cheng
8d4b9076f7
Revert "Remove caTools dependency"
...
This reverts commit e4239c924b .
I totally forgot the problems this causes with R 2.15 and thus
glimmer/spark. httpuv 1.2.2 requires Rcpp 0.11 which requires
R 3.0. So existing installs (like glimmer/spark) that are
running just fine with httpuv 1.2.0 will be forced to upgrade,
which is hard to do when you don't know the provenance of
all the packages installed by your users.
2014-08-12 10:24:33 -07:00
Winston Chang
b6deb87cae
Unify binding and page-level progress interface
2014-07-30 14:15:41 -05:00
Winston Chang
7319c88674
Use new message format for progress reporting
2014-07-30 14:15:41 -05:00
Winston Chang
bfea3201e8
Put progress stack in session object
2014-07-30 14:15:41 -05:00
Joe Cheng
e4239c924b
Remove caTools dependency
...
Instead, use base64 encoding function from httpuv
2014-07-24 10:37:14 -07: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
Winston Chang
5d22648d34
Merge pull request #513 from rstudio/feature/json-precision
...
Control precision of JSON numeric representation
2014-06-17 11:51:47 -05:00
Yihui Xie
ede0ca8bd1
make sure JSON messages are always encoded and decoded with UTF8
...
- per @jcheng5's suggestion, RJSONIO::fromJSON(encoding = 'UTF-8') actually works (no longer need my markUTF8 function)
- removed the global option 'shiny.transcode.json'
2014-06-13 18:07:01 -05:00