search for: r_flushconsole

Displaying 17 results from an estimated 17 matches for "r_flushconsole".

2012 May 07
0
R CMD check, interfacing c++ linking errors
...using std::endl; [...] extern "C" { void RosvallDynamicSkeleton(int *seed,char** file, int *attempts, int *resamples, double *conf) { int ret = confInfomap(seed[0],file,attempts[0],resamples[0],conf[0]); if(ret == 0) Rprintf("cluster map has been written to %s\n", file[0]); R_FlushConsole(); R_ProcessEvents(); return; // Return Nothing. } } extern "C" { void findConfCoreWrapper(SEXP gdiag, SEXP bootClusters, SEXP membership, SEXP conf) { multimap<double,treeNode,greater<double> > treeMap; multimap<double,treeNode,greater<double> >::iterator it_t...
2016 Sep 16
1
getGraphicsEvent() questions, minor feature/tweak request, and patch(es).
...(prompt) != R_NaString)) error(_("invalid prompt")); /* NB: cleanup of event handlers must be done by driver in onExit handler */ @@ -159,8 +159,10 @@ if (!count) error(_("no graphics event handlers set")); - Rprintf("%s\n", CHAR(asChar(prompt))); - R_FlushConsole(); + if (TYPEOF(prompt) != LGLSXP || asChar(prompt) != R_NaString) { + Rprintf("%s\n", CHAR(asChar(prompt))); + R_FlushConsole(); + } /* Poll them */ while (result == R_NilValue) { -------------- next part -------------- Index: src/library/grDevices/man/getGraphi...
2012 May 08
0
R CMD check, c++ source linking errors
...using std::endl; [...] extern "C" { void RosvallDynamicSkeleton(int *seed,char** file, int *attempts, int *resamples, double *conf) { int ret = confInfomap(seed[0],file,attempts[0],resamples[0],conf[0]); if(ret == 0) Rprintf("cluster map has been written to %s\n", file[0]); R_FlushConsole(); R_ProcessEvents(); return; // Return Nothing. } } extern "C" { void findConfCoreWrapper(SEXP gdiag, SEXP bootClusters, SEXP membership, SEXP conf) { multimap<double,treeNode,greater<double> > treeMap; multimap<double,treeNode,greater<double> >::iterator it_t...
2012 May 08
1
R CMD check linking errors, when interfacing c++
...using std::endl; [...] extern "C" { void RosvallDynamicSkeleton(int *seed,char** file, int *attempts, int *resamples, double *conf) { int ret = confInfomap(seed[0],file,attempts[0],resamples[0],conf[0]); if(ret == 0) Rprintf("cluster map has been written to %s\n", file[0]); R_FlushConsole(); R_ProcessEvents(); return; // Return Nothing. } } extern "C" { void findConfCoreWrapper(SEXP gdiag, SEXP bootClusters, SEXP membership, SEXP conf) { multimap<double,treeNode,greater<double> > treeMap; multimap<double,treeNode,greater<double> >::iterator it_t...
2016 Sep 17
2
Handlers in setGraphicsEventHandlers() can recursively call getGraphicsEvent(). Intended behavior?
...SEXP handler, bvec, sx, sy, temp, result; - dd->gettingEvent = FALSE; /* avoid recursive calls */ - PROTECT(handler = findVar(install(mouseHandlers[event]), dd->eventEnv)); if (TYPEOF(handler) == PROMSXP) { handler = eval(handler, dd->eventEnv); @@ -242,7 +240,7 @@ R_FlushConsole(); } UNPROTECT(1); /* handler */ - dd->gettingEvent = TRUE; + return; } @@ -257,8 +255,6 @@ { SEXP handler, skey, temp, result; - dd->gettingEvent = FALSE; /* avoid recursive calls */ - PROTECT(handler = findVar(install(keybdHandler), dd->eventEnv));...
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
Hi Ivan Can you please clarify what input files should be used with your proposed function? I tried a few files in r-svn/src/include and one of them gave me an error. > getdecl("~/R/r-svn/src/include/R.h") [1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent" > getdecl("~/R/r-svn/src/include/Rdefines.h") Error in regmatches(lines, gregexec(rx, lines, perl = TRUE))[[1]][3, ] : incorrect number of dimensions On Mon, Jul 15, 2024 at 10:32?AM Ivan Krylov via R-devel <r-devel at r-...
2024 Jul 15
1
Minor inconsistencies in tools:::funAPI()
Hi all, I've noticed some peculiarities in the tools:::funAPI output that complicate its programmatic use a bit. - Is it for remapped symbol names (with Rf_ or the Fortran underscore), or for unmapped names (without Rf_ or the underscore)? I see that the functions marked in WRE are almost all (except Rf_installChar and Rf_installTrChar) unmapped. This makes a lot of sense because some
2012 Nov 14
0
Rcpp 0.10.0
...e number of vectorised functions. In this release, we added - which_min() and which_max() returning the index of the first object matching the condition - unique() and sort_unique() ===== New I/O facilities ===== The Rcpp::Rcout object now supports the std::flush manipulator, which calls R_FlushConsole. A new object Rcpp::Rcerr has been added with passes content for error messages to REprintf(). ===== New namespace "R::" for Rmath functions ===== A side-effect of Rcpp sugar providing vectorised d/p/q/r functions for the various statistical distribution was that the scalar variants o...
2012 Nov 14
0
Rcpp 0.10.0
...e number of vectorised functions. In this release, we added - which_min() and which_max() returning the index of the first object matching the condition - unique() and sort_unique() ===== New I/O facilities ===== The Rcpp::Rcout object now supports the std::flush manipulator, which calls R_FlushConsole. A new object Rcpp::Rcerr has been added with passes content for error messages to REprintf(). ===== New namespace "R::" for Rmath functions ===== A side-effect of Rcpp sugar providing vectorised d/p/q/r functions for the various statistical distribution was that the scalar variants o...
2007 Jan 30
1
Solaris 10 compilation issue
...arithmetic.o pcre_study character.o R_ShowMessage CommandLineArgs.o dqrdc2_ registration.o ptr_R_addhistory ../unix/libunix.a(stubs.o) Rf_InitFunctionHashing Rdynload.o R_FlushConsole errors.o Rf_gamma_cody arithmetic.o Rf_dwilcox arithmetic.o deflateInit_ ../extra/zlib/libz.a(compress.o) rmultinom random.o Rf_dbeta arithmetic.o Rf_dgeom...
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...arithmetic.o pcre_study character.o R_ShowMessage CommandLineArgs.o dqrdc2_ registration.o ptr_R_addhistory ../unix/libunix.a(stubs.o) Rf_InitFunctionHashing Rdynload.o R_FlushConsole errors.o Rf_gamma_cody arithmetic.o Rf_dwilcox arithmetic.o deflateInit_ ../extra/zlib/libz.a(compress.o) rmultinom random.o Rf_dbeta arithmetic.o Rf_dgeom...
2007 Jan 30
0
R Compiling issue
...uicide Renviron.o stemleaf registration.o Rf_digamma arithmetic.o do_sysinfo names.o Rf_dnchisq arithmetic.o Rf_dnbinom arithmetic.o pcre_study character.o R_ShowMessage CommandLineArgs.o dqrdc2_ registration.o ptr_R_addhistory ../unix/libunix.a(stubs.o) Rf_InitFunctionHashing Rdynload.o R_FlushConsole errors.o Rf_gamma_cody arithmetic.o Rf_dwilcox arithmetic.o deflateInit_ ../extra/zlib/libz.a(compress.o) rmultinom random.o Rf_dbeta arithmetic.o Rf_dgeom arithmetic.o Rf_dpois arithmetic.o Rf_dunif arithmetic.o Rf_fmin2 engine.o Rf_fmax2 engine.o Rf_fprec arithmetic.o Rf_fsign complex...
2007 Jan 30
0
Issue with compiling R on solaris 10
...arithmetic.o pcre_study character.o R_ShowMessage CommandLineArgs.o dqrdc2_ registration.o ptr_R_addhistory ../unix/libunix.a(stubs.o) Rf_InitFunctionHashing Rdynload.o R_FlushConsole errors.o Rf_gamma_cody arithmetic.o Rf_dwilcox arithmetic.o deflateInit_ ../extra/zlib/libz.a(compress.o) rmultinom random.o Rf_dbeta arithmetic.o Rf_dgeom...
1999 Aug 03
2
compliation problem
Problem compiling R. version: 0.64.2 machine: SGI O2 OS: IRIX6.5 CC cc FC f77 MAKE GNU make 3.75 Here is part of the the output for make. make[2]: Leaving directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/include' make[2]: Entering directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/appl' cc -g -OPT:IEEE_NaN_inf=ON -I../include
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
..."); #ifdef Win32 int meth = asLogical(CADR(args)); if(meth == NA_LOGICAL) @@ -542,7 +557,7 @@ static SEXP in_do_download(SEXP args) R_Busy(1); if(!quiet) REprintf(_("trying URL '%s'\n"), url); - SEXP agentFun, sheaders; + SEXP agentFun, sagent; #ifdef Win32 R_FlushConsole(); if(meth) @@ -553,12 +568,15 @@ static SEXP in_do_download(SEXP args) agentFun = PROTECT(lang1(install("makeUserAgent"))); #endif SEXP utilsNS = PROTECT(R_FindNamespace(mkString("utils"))); - sheaders = eval(agentFun, utilsNS); + sagent = eval(agentFun, utilsNS); UNPR...
2006 Apr 24
0
R 2.3.0 is released
...address is a reference to the native symbol. The default is FALSE which is backward compatible, returning just the address of the symbol and ignoring registration information. o errorcall and warningcall are now declared in <Rinternals.h> (they might be needed in front-ends). o R_FlushConsole and R_ProcessEvents are now declared in <R.h>. o The R_Sock* functions supporting socket connections are no longer declared in R-ftp-http.h as they are not loaded into R itself, and are now hidden in the module's DLL on suitable systems. BUG FIXES o Quoted arguments to the R...
2006 Apr 24
0
R 2.3.0 is released
...address is a reference to the native symbol. The default is FALSE which is backward compatible, returning just the address of the symbol and ignoring registration information. o errorcall and warningcall are now declared in <Rinternals.h> (they might be needed in front-ends). o R_FlushConsole and R_ProcessEvents are now declared in <R.h>. o The R_Sock* functions supporting socket connections are no longer declared in R-ftp-http.h as they are not loaded into R itself, and are now hidden in the module's DLL on suitable systems. BUG FIXES o Quoted arguments to the R...