The problem with the standalone function is there is no way to attach data values and "listen" for value changes to trigger a re-render. However R6 has the notion of setter functions that can add logic that will be performed on value assignments. S3 has something analogous
The problem with the standalone function is there is no way to attach data values and "listen" for value changes to trigger a re-render. However R6 has the notion of setter functions that can add logic that will be performed on value assignments. S3 has something analogous