search for: sample_a

Displaying 4 results from an estimated 4 matches for "sample_a".

Did you mean: sample_1
2018 Sep 14
2
Bug when calling system/system2 (and request for Bugzilla account)
I hope it's not too specific in my setup... I've tried with system2 added on the first line, so: Example.R: system2('ls', timeout=5) cat('Start non-interruptable functions\n') sample_a <- sample(1:1e7) sample_b <- sample(1:2e7) matching <- match(sample_a, sample_b) cat('Finished\n') Sys.sleep(10) And in terminal/bash: R --vanilla source('Example.R') Send ^C between the messages (Start... until Finished) Or if you have a more powerful CPU you can increa...
2018 Sep 14
3
Bug when calling system/system2 (and request for Bugzilla account)
...ent whether I?m in a clean session (in which case some time is allowed to pass, so that when the function returns the script can be interrupted), or whether I have called base::system() or system2() with timeout other than 0. Reproducible example: cat('Start non-interruptable functions\n') sample_a <- sample(1:1e7) sample_b <- sample(1:2e7) matching <- match(sample_a, sample_b) cat('Finished\n') Sys.sleep(10) Observed behaviour: In a clean session, when I hit Ctrl-C during the execution of match, there is a delay, and as soon as Sys.sleep() is invoked, the script is interrup...
2018 Sep 14
0
Bug when calling system/system2 (and request for Bugzilla account)
...10:53 AM Emil Bode <emil.bode at dans.knaw.nl> wrote: > > I hope it's not too specific in my setup... > I've tried with system2 added on the first line, so: > > Example.R: > system2('ls', timeout=5) > cat('Start non-interruptable functions\n') > sample_a <- sample(1:1e7) > sample_b <- sample(1:2e7) > matching <- match(sample_a, sample_b) > cat('Finished\n') > Sys.sleep(10) > > And in terminal/bash: > R --vanilla > source('Example.R') > Send ^C between the messages (Start... until Finished) > &...
2018 Sep 14
0
Bug when calling system/system2 (and request for Bugzilla account)
...a clean session (in which case some time is allowed to pass, so that when the function returns the script can be interrupted), or whether I have called base::system() or system2() with timeout other than 0. > > Reproducible example: > cat('Start non-interruptable functions\n') > sample_a <- sample(1:1e7) > sample_b <- sample(1:2e7) > matching <- match(sample_a, sample_b) > cat('Finished\n') > Sys.sleep(10) > > Observed behaviour: > In a clean session, when I hit Ctrl-C during the execution of match, there is a delay, and as soon as Sys.sleep()...