search for: addtaskcallback

Displaying 20 results from an estimated 24 matches for "addtaskcallback".

2002 Jun 20
1
Argument visible of addTaskCallback
Hello, I have a question about addTaskCallback It is said that the argument visible allows to know wether the result of the top-level evaluation was printed or not. Nevertheless, in the following example, I encountered a problem, as it seems not all printed objects are visible... Could someone tell me where is the tip? TIA -------------...
2010 Jun 15
2
GUI's and R background processes
...s (#1), but I don't want the user to wait for the others to finish. The calculations are not dependent. I just need to display results. I've been reading that threading in R is not an option. I tried using the multicore package, but that is still synchronous. I looked at multicore, fork(), addTaskCallback(), and TclTk threading, and none of these seem like an option. Is there a way to launch multiple R scripts from controller that can communicate back and forth? I believe this means that the separate processes are able to communicate. I certainly appreciate any direction you can provide. I really...
2007 Jul 06
1
Hook for running a function before evaluation
Hello, I like much addTaskCallback() and friends. However, there are situations were we would like to have a function run BEFORE, not after every top-level tasks. I think specifically to reset options(width = ) to accommodate to the current width of the console, using something like: options(width = system("tput cols")...
2002 Mar 05
1
dribble for R?
Is there something like the LISP function dribble in R? This would log all the output to a file but still show it on the terminal too. sink just diverts the output, but I dont see a way to do what dribble would do? Johann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2017 Dec 21
1
Wish List: base::source() + Add Execution Time Argument
R does provide the addTaskCallback / taskCallbackManager to run a callback function after every top level command. However there is not an equivalent interface that would be run _before_ each command, which would make it possible to time of top level calls and provide other execution measurements. On Thu, Dec 21, 2017 at 11:31 AM,...
2003 Aug 20
0
SJava in R
...ge:mva package:modreg package:nls package:ts Autoloads package:base [objects] ^ ~ < <<- <= <- = == > >= | || - : :: ! != ? / ( [ [<- [[ [[<- { @ $ $<- * & && %/% %*% %% + abbreviate abline abs acos acosh add1 add1.default add1.glm add1.lm add1.mlm add.scope addTaskCallback aggregate aggregate.data.frame aggregate.default aggregate.ts agrep AIC AIC.default AIC.logLik alias .Alias alias.formula alias.lm alist all all.equal all.equal.character all.equal.default all.equal.factor all.equal.formula all.equal.language all.equal.list all.equal.numeric all.equal.POSIXct all.n...
2001 Nov 12
2
is auto-save possible?
Dear R-help, This is just a wishlist item: Is it possible at all to make R (optionally) automagically do save.image() periodically (e.g., every fixed number of commands or >= fixed amount of time)? The reason I asked is that I frequently run R-1.3.1 inside XEmacs 21.4.5/ESS 5.1.19 under WinNT, and had seen Rterm.exe crashed a few times for no apparent reason (and not reproducible). When
2019 May 21
3
print.<strorageMode>() not called when autoprinting
Letting a user supply the autoprint function would be nice also. In a way you can already do that, using addTaskCallback(), but that doesn't let you suppress the standard autoprinting. Having the default autoprinting do its own style of method dispatch doesn't seem right. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, May 21, 2019 at 10:50 AM Lionel Henry <lionel at rstudio.com> wrote: > F...
2008 Nov 07
1
is there any way to run R method as a background process from R interface
Hi , can some body tell to me "how to run a R method /function as a background process from R interface" Thanks K.Ravichandra [[alternative HTML version deleted]]
2014 Oct 12
1
Is this an incorrect use of the R-API?
Hi, I am trying to create a small extension for R here for embedding the current time on the R prompt: https://github.com/musically-ut/extPrompt Things seem to be working overall, but `R CMD check .` raised a warning: > File '[truncated]..Rcheck/extPrompt/libs/extPrompt.so?: > Found non-API call to R: ?ptr_R_ReadConsole? > > Compiled code should not call non-API entry points in
2011 Feb 16
2
monitor variable change
Dear all I would like to ask you if there is a way in R to monitor in R when a value changes. Right now I use the sprintf('my variables is %d \n, j) to print the value of the variable. Is it possible when a 'big' for loop executes to open in a new window to dynamically check only the variable I want to. If I put all the sprintf statements inside my loop then I get flooded with so
2007 Nov 06
3
How to know created time of object in R?
Dear UseRs, I would like to know the created time and date of specific object. Is there any function for it? Thank you in advance. Sincerely,
2013 Mar 02
2
How to start console output with a comment sign (as in knitr)
Dear all, knitr writes a comment sign in front of each line of console output. This extremely useful, especially for beginners who are starting to write scripts. One could just compose their script in the console (getting immediate output) and then copy the whole chunk into their .r-file. I have been able to configure the options such that the prompt and the continuing line labels are replaced
2019 May 22
0
print.<strorageMode>() not called when autoprinting
>>>>> William Dunlap >>>>> on Tue, 21 May 2019 12:11:45 -0700 writes: > Letting a user supply the autoprint function would be nice also. In a way > you can already do that, using addTaskCallback(), but that doesn't let you > suppress the standard autoprinting. > Having the default autoprinting do its own style of method dispatch doesn't > seem right. I agree (if I understand correctly what you mean ... ;-) > Bill Dunlap > TIBCO Software &gt...
2017 Dec 21
4
Wish List: base::source() + Add Execution Time Argument
Dear R Developers, Adding to source() base function a Timer which indicates the execution time of the source code would be a very well welcome feature, and in my opinion not difficult to implement as an additional funtion argument. The source(timing = TRUE) function shall execute internally the following code for each statement: old <- Sys.time() # get start time at the beginning of source()
2018 Mar 04
2
Random Seed Location
...ntify when .GlobalEnv$.Random.seed has changed: rng_tracker <- local({ last <- .GlobalEnv$.Random.seed function(...) { curr <- .GlobalEnv$.Random.seed if (!identical(curr, last)) { warning(".Random.seed changed") last <<- curr } TRUE } }) addTaskCallback(rng_tracker, name = "RNG tracker") EXAMPLE: > sample.int(1L) [1] 1 Warning: .Random.seed changed This will help you find for instance: ## Loading ggplot2 does not affect the RNG seed > loadNamespace("ggplot2") <environment: namespace:ggplot2> ## But attaching i...
2018 Mar 04
0
Random Seed Location
...cal({ > last <- .GlobalEnv$.Random.seed > function(...) { > curr <- .GlobalEnv$.Random.seed > if (!identical(curr, last)) { > warning(".Random.seed changed") > last <<- curr > } > TRUE > } > }) > > addTaskCallback(rng_tracker, name = "RNG tracker") > > > EXAMPLE: > >> sample.int(1L) > [1] 1 > Warning: .Random.seed changed > > This will help you find for instance: > > ## Loading ggplot2 does not affect the RNG seed >> loadNamespace("ggplot2")...
2019 May 21
2
print.<strorageMode>() not called when autoprinting
It also is a problem with storage.modes "integer" and "complex": 3.6.0> print.integer <- function(x,...) "integer vector" 3.6.0> 1:10 [1] 1 2 3 4 5 6 7 8 9 10 3.6.0> print(1:10) [1] "integer vector" 3.6.0> 3.6.0> print.complex <- function(x, ...) "complex vector" 3.6.0> 1+2i [1] 1+2i 3.6.0>
2010 Aug 24
3
How to obtain seed after generating random number?
Dear all, I was doing an experiment to disprove some theory therefore performing lot of random simulation. Goal is to show the audience that although something has very rare chance to occur but it doesn't mean that event would be impossible. In this case after getting that rare event I need to show that same scenario for multiple times to explain other audience. Hence I need to somehow
2012 Jan 22
4
how to save the R script itself into a rData file?
Hi all, As a part of work flow, I do a lot of experiments and save all my results into rData file... i.e. at the end of all my experiments, I do "save.image("experiment_name_with_series_number.rData")"... However, some times even with the rData files, I cannot remember the context where these data files were generated. Of course, I can make the R data file names and the R