search for: callr

Displaying 20 results from an estimated 27 matches for "callr".

Did you mean: call
2013 Jan 04
1
Integrating Java, C++ and R
Hi, I am able to integrate C++ and R through RInside library. However when I use a jni call as my UI is through java it crashes at C++ side. My files are ------------------------------------------------ JNICallingClass.C: JNIEXPORT void JNICALL Java_CallR_run (JNIEnv* env, jobject callr){ std::cout << "Inside JNICALL" << std::endl; testR(); std::cout << "ENd of JNICALL" << std::endl; } ------------------------------------------------- CppCall2R.C void testR(){ Rcpp::...
2004 Dec 03
1
Getting R to emit an image file as a pipe or Base64 stream: Mac OSX 10.3 - R 2.0.1
...hat perl can grab it, instead of planting a file on your harddrive when calling JPEG or PNG? I've managed to get these scripts to work and put a file on the harddisk #!/usr/bin/perl -Wall # by jin kee. a simple script to demonstrate # the needed steps to get R to emit a jpeg. use strict; my($callR, $callRold); # need to start X if is isn't already started. `open /Applications/Utilities/X11.app`; #need to get let the R program know where to look #for the display immediately before calling #the R executible. $callR =<<MARKER; DISPLAY=:0.0; export DISPLAY; /usr/bin/R --vanilla <...
2004 Dec 03
1
Getting R to emit an image file as a pipe or Base64 strea m: Mac OSX 10.3 - R 2.0.1
> From: Yuandan Zhang > > If you want to call R from perl, why don't you do a simple > system call like: > > $callR="/usr/loca/bin/R CMD BATCH plotscript.R"; > system ($callR); > > It is not necessary to start X display if anything can be > done in background But the problem is jpeg()/png() are not available unless an X display is available to the R process (one of the FAQs). Andy...
2019 Apr 30
2
Background R session on Unix and SIGINT
OK, I managed to create an example without callr, but it is still somewhat cumbersome. Anyway, here it is. Terminal 1: mkfifo fif R --no-readline --slave --no-save --no-restore < fif Terminal 2: cat > fif Sys.getpid() This will make Terminal 1 print the pid of the R process, so we can send a SIGINT: Terminal 3: kill -INT pid The R proc...
2019 Apr 30
2
Background R session on Unix and SIGINT
...?rdi <csardi.gabor at gmail.com> wrote: > > > > Hi All, > > > > I realize that this is not a really nice reprex, but anyone has an > > idea why a background R session would "remember" an interrupt (SIGINT) > > on Unix? > > > > rs <- callr::r_session$new() > > rs$interrupt() # just sends a SIGINT > > #> [1] TRUE > > > > rs$run(function() 1+1) > > #> Error: interrupt > > > > rs$run(function() 1+1) > > #> [1] 2 > > > > It seems that the main loop somehow stores th...
2019 Apr 30
2
[External] Re: Background R session on Unix and SIGINT
...rupt > will probably be seen sooner. > > If the interactive behavior is what you want you can add --interactive > to the arguments used to start R. > > Best, > > luke > > On Tue, 30 Apr 2019, G?bor Cs?rdi wrote: > > > OK, I managed to create an example without callr, but it is still > > somewhat cumbersome. Anyway, here it is. > > > > Terminal 1: > > mkfifo fif > > R --no-readline --slave --no-save --no-restore < fif > > > > Terminal 2: > > cat > fif > > Sys.getpid() > > > > This will make...
2017 Sep 06
3
withr::set_makevars
...date 2017-09-06 ? Packages package * version date source assertthat 0.2.0 2017-04-11 CRAN (R 3.4.1) backports 1.1.0 2017-05-22 CRAN (R 3.4.0) callr 1.0.0.9000 2017-09-02 Github (r-lib/callr at 2dffbbe) clisymbols 1.2.0 2017-09-02 Github (gaborcsardi/clisymbols at e49b4f5) covr 3.0.0 2017-06-26 CRAN (R 3.4.1) crayon 1.3.2.9000 2017-08-25 Github (gaborcsard...
2017 Sep 07
0
withr::set_makevars
...> language (EN) > collate en_US.UTF-8 > tz America/Los_Angeles > date 2017-09-06 > > ? Packages package * version date source > assertthat 0.2.0 2017-04-11 CRAN (R 3.4.1) > backports 1.1.0 2017-05-22 CRAN (R 3.4.0) > callr 1.0.0.9000 2017-09-02 Github (r-lib/callr at 2dffbbe) > clisymbols 1.2.0 2017-09-02 Github (gaborcsardi/clisymbols@ > e49b4f5) > covr 3.0.0 2017-06-26 CRAN (R 3.4.1) > crayon 1.3.2.9000 2017-08-25 Github (gaborcsardi/crayon at e4dba3b) &gt...
2019 Apr 30
0
[External] Re: Background R session on Unix and SIGINT
...y wake and check for interrupts. In that case the interrupt will probably be seen sooner. If the interactive behavior is what you want you can add --interactive to the arguments used to start R. Best, luke On Tue, 30 Apr 2019, G?bor Cs?rdi wrote: > OK, I managed to create an example without callr, but it is still > somewhat cumbersome. Anyway, here it is. > > Terminal 1: > mkfifo fif > R --no-readline --slave --no-save --no-restore < fif > > Terminal 2: > cat > fif > Sys.getpid() > > This will make Terminal 1 print the pid of the R process, so we can &...
2019 May 01
0
[External] Re: Background R session on Unix and SIGINT
...>> If the interactive behavior is what you want you can add --interactive >> to the arguments used to start R. >> >> Best, >> >> luke >> >> On Tue, 30 Apr 2019, G?bor Cs?rdi wrote: >> >>> OK, I managed to create an example without callr, but it is still >>> somewhat cumbersome. Anyway, here it is. >>> >>> Terminal 1: >>> mkfifo fif >>> R --no-readline --slave --no-save --no-restore < fif >>> >>> Terminal 2: >>> cat > fif >>> Sys.getpid() >&...
2019 Apr 30
0
Background R session on Unix and SIGINT
Can you give an example without callr? The key is how is the process stated and what it is doing which is entirely opaque in callr. Windows doesn't have signals, so the process there is entirely different. Most of the WIN32 processing is event-based. Cheers, Simon > On Apr 30, 2019, at 4:17 PM, G?bor Cs?rdi <csardi.gabor...
2019 Apr 30
2
Background R session on Unix and SIGINT
Hi All, I realize that this is not a really nice reprex, but anyone has an idea why a background R session would "remember" an interrupt (SIGINT) on Unix? rs <- callr::r_session$new() rs$interrupt() # just sends a SIGINT #> [1] TRUE rs$run(function() 1+1) #> Error: interrupt rs$run(function() 1+1) #> [1] 2 It seems that the main loop somehow stores the SIGINT it receives while it is waiting on stdin, and then it triggers it when some input comes...
2016 Nov 18
3
Linking LLVM IR with standard library
Hi, I have a LLVM IR file generated for a different source language (Not C). I have added a rand() function in it to generate random numbers. I compiled the .ll file to .o using clang. However, when I execute the .o file all generated numbers are zeros. How should I link the .ll file with the standard library for the clang to generate the random numbers? Thanks -Shilpa -------------- next
2018 May 06
1
Ubuntu 18.04 bionic: availability of R Ubuntu packages/ppa?
...tidyverse could be installed: I have the impression that it is short of being installed, missing just a few simple packages (with no apparent non-R dependencies). Indeed, a first naive look shows following unavailable dependencies for tidyverse: ## missing for tidyverse: modelr (ok!?) reprex: -callr -debugme -covr -rex (ok!?) -rmarkdown (ok!?) rvest: selectr (ok!?) I hope that these package could be considered in a near future Michael? Thanks! :-) Best, Matthieu 2018-05-05 16:02 GMT-07:00 Dirk Eddelbuettel <edd at debian.org>: > > Salut Matthieu, >...
2015 Apr 16
2
[LLVMdev] Multiple connected components in live interval
...ved from LLVM BB %bb3 Predecessors according to CFG: BB#8 2304B %vreg64<def> = mov 0 2448B jmp <BB#5> Successors according to CFG: BB#5 2592B BB#3: derived from LLVM BB %bb6 Predecessors according to CFG: BB#2 2704B callr <ga:@safe_div_func_uint64_t_u_u> 2736B %vreg64<def> = COPY %return_reg 2768B use of %vreg64 2784B use of %vreg64 2816B jmp <BB#4> Successors according to CFG: BB#4 *** Bad machine code: Multiple connected components in live int...
2015 Apr 16
2
[LLVMdev] Multiple connected components in live interval
...to CFG: BB#8 >> 2304B %vreg64<def> = mov 0 >> 2448B jmp <BB#5> >> Successors according to CFG: BB#5 >> >> 2592B BB#3: derived from LLVM BB %bb6 >> Predecessors according to CFG: BB#2 >> 2704B callr <ga:@safe_div_func_uint64_t_u_u> >> 2736B %vreg64<def> = COPY %return_reg >> 2768B use of %vreg64 >> 2784B use of %vreg64 >> 2816B jmp <BB#4> >> Successors according to CFG: BB#4 >> >> ***...
2015 Apr 17
2
[LLVMdev] Multiple connected components in live interval
...t;def> = mov 0 >>>> 2448B jmp <BB#5> >>>> Successors according to CFG: BB#5 >>>> >>>> 2592B BB#3: derived from LLVM BB %bb6 >>>> Predecessors according to CFG: BB#2 >>>> 2704B callr <ga:@safe_div_func_uint64_t_u_u> >>>> 2736B %vreg64<def> = COPY %return_reg >>>> 2768B use of %vreg64 >>>> 2784B use of %vreg64 >>>> 2816B jmp <BB#4> >>>> Successors accor...
2019 Apr 30
0
Background R session on Unix and SIGINT
...On Apr 30, 2019, at 3:44 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > > Hi All, > > I realize that this is not a really nice reprex, but anyone has an > idea why a background R session would "remember" an interrupt (SIGINT) > on Unix? > > rs <- callr::r_session$new() > rs$interrupt() # just sends a SIGINT > #> [1] TRUE > > rs$run(function() 1+1) > #> Error: interrupt > > rs$run(function() 1+1) > #> [1] 2 > > It seems that the main loop somehow stores the SIGINT it receives > while it is waiting o...
2002 Aug 15
0
SJava, another UnsatisfiedLinkError
...Object val = e.eval("objects()"); if (val != null) { String[] objects = (String[])val; for (int i=0; i < objects.length; i++) { System.err.println("("+i+") " + objects[i]); } } } } And here is my callR.win: #!sh # If the caller gives a class name, use that. # Otherwise, we will look for the environment variable JCLASS # or use the JavaRCall example if test -n "$1" ; then JCLASS=$1 fi JCLASS=${JCLASS-org.omegahat.R.Java.Examples.JavaRCall} # Ensure R_HOME is set and available to J...
2007 Mar 06
3
Passing command line parameters to a script
Hi, Does any one know if it is possible to create an R script that can use command line parameters. I can execute an R script from the command line, but I cannot figure out how to pass parameters to the script. The only resources I have found seem somewhat involved or incomplete. Any help is appreciated. Akintayo [[alternative HTML version deleted]]