Winston Chang
2f7dd04168
Observable: save visibility state of function
2013-01-24 21:57:49 -06:00
Winston Chang
ed3b667985
Remove unneeded eval.parent
2013-01-24 21:38:25 -06:00
Winston Chang
85aa98e8e2
Fixes for R CMD check
2013-01-23 14:30:11 -06:00
Winston Chang
e658734084
Rename reactivevalues_to_list to reactiveValuesToList
2013-01-22 19:14:30 -06:00
Winston Chang
ec4f350baa
reactivevalues_to_list: add all.names option
2013-01-22 14:53:14 -06:00
Winston Chang
095f583211
Deprecate as.list.reactivevalues and add reactivevalues_to_list
2013-01-22 14:51:43 -06:00
Winston Chang
3c864cf6d2
reactiveValues(): improved check for unnamed arguments
2013-01-22 13:59:31 -06:00
Winston Chang
8d8d308f7a
Rename 'dependencies' to 'dependents'
2013-01-16 22:42:03 -06:00
Winston Chang
3ebd4595c6
Add read-write wrapper class for ReactiveValues
2013-01-16 19:02:26 -06:00
Joe Cheng
134689d8aa
Remove subsetting operators from Map and Values
...
The correct operators would be [[/[[<- but since we don't use them I
just removed them instead.
2013-01-16 13:48:50 -08:00
Joe Cheng
e42fe3bd61
Fix problem with circular dependencies
...
The first of the included tests did not pass without the changes to
Observable. The problem occurred when a function read a reactive value
and then wrote it. Any dependents on the function would not receive
any invalidations, then or ever after.
The first problem was that the dirty state was unilaterally set to FALSE
after the function finished executing, which might not be accurate if
the function's newly created was invalidated during its own execution.
Instead we set dirty state to FALSE before executing. But to prevent
reentrant calls from thinking the cached value can be used, we add
a .running field that is also consulted during getValue.
The second problem was that Observable$getValue didn't register the
dependent until after updateValue. That is a problem if updateValue
creates *and* invalidates a context before returning. So now we
register the dependent before calling updateValue.
2013-01-15 17:37:26 -08:00
Winston Chang
153156c1fa
Add back onInvalidate to Observer class
2013-01-15 11:13:46 -06:00
Winston Chang
3ecc69da2b
Un-export execCount
2013-01-15 11:13:46 -06:00
Winston Chang
7d0de0b26f
Remove onInvalidateHint
...
The recent changes to onInvalidate make it do almost exactly the same thing.
2013-01-15 11:13:46 -06:00
Winston Chang
3a8f3272c7
Don't call observers until flushReact()
2013-01-15 11:13:46 -06:00
Joe Cheng
979eca4066
Add execCount
2013-01-08 14:06:10 -06:00
Joe Cheng
258d13e746
Add ctx$.label to help with debugging
...
Shows the code that the context "belongs" to.
2013-01-08 14:06:10 -06:00
Winston Chang
779531da5d
Use lazy evaluation of reactive functions
2013-01-08 14:06:10 -06:00
Joe Cheng
e2925c585f
Add isolate function for accessing reactives non-reactively
2013-01-03 12:16:50 -08:00
Joe Cheng
6c76b0473c
Add implementation of reactive values
2013-01-02 16:00:21 -08:00
Joe Cheng
022d10c598
Export and document observe function
2012-11-06 10:03:11 -08:00
Joe Cheng
81723d55ac
Change T and F to TRUE and FALSE
...
TRUE and FALSE are keywords whereas T and F are just predefined variables that can be reassigned
2012-10-31 11:35:41 -07:00
Joe Cheng
cb4091895a
Fix S3 generic method consistency
2012-08-20 13:44:04 -07:00
Joe Cheng
d49e8d172f
Improvements to reactives and UI
...
- `input` object now implements names() and as.list()
- Simpler dependency tracking impl using Dependencies class
- New `singleton` function for making HTML content appear only once
- Fix issue #4 : head deduplication should not be line-oriented
2012-08-18 00:01:16 -07:00
JJ Allaire
e0a6a6c558
remove internal functions from docs
2012-07-29 05:34:48 -07:00
Joe Cheng
4101c1efd0
Rd docs for observe, reactive, reactiveTimer
...
Also improve some error messages
2012-07-28 01:47:19 -07:00
Joe Cheng
0d8d35743d
Observers defer first execution until flushReact
...
This allows us to greatly simplify the way outputs are defined
2012-07-25 16:07:40 -07:00
Joe Cheng
b4c02f42f7
Add support for progress indication
...
The CSS class 'recalculating' will be added to any output elements whose content might be affected by a change to one or more of the inputs.
2012-07-24 10:45:00 -07:00
Joe Cheng
8b4d62e374
Error handling support (very basic)
2012-07-23 17:10:19 -07:00
Joe Cheng
bd87be2f7e
Tweak docs
2012-07-18 09:00:32 -07:00
Joe Cheng
0660ddbfbf
Values keys that start with . were not reactive
2012-07-17 22:28:22 -07:00
Joe Cheng
108dd4ff24
Add invalidateLater API call
...
Provides a simpler mechanism for doing time-based invalidation of reactive functions.
2012-07-13 02:29:03 -07:00
Joe Cheng
52394d61bf
Add time infrastructure, reactiveTimer
2012-07-12 16:36:32 -07:00
Joe Cheng
500501497f
Roxygenize
2012-07-04 14:11:35 -07:00