Displaying 20 results from an estimated 300 matches similar to: "When collected warnings exceeds 50"
2024 Apr 25
1
Big speedup in install.packages() by re-using connections
On Thu, 25 Apr 2024 14:45:04 +0200
Jeroen Ooms <jeroenooms at gmail.com> wrote:
> Thoughts?
How verboten would it be to create an empty external pointer object,
add it to the preserved list, and set an on-exit finalizer to clean up
the curl multi-handle? As far as I can tell, the internet module is not
supposed to be unloaded, so this would not introduce an opportunity to
jump to an
2024 Apr 25
1
Big speedup in install.packages() by re-using connections
I'd like to raise this again now that 4.4 is out.
Below is a more complete patch which includes a function to properly
cleanup libcurl when R quits. Implementing this is a little tricky
because libcurl is a separate "module" in R, perhaps there is a better
way, but this works:
view: https://github.com/r-devel/r-svn/pull/166/files
patch:
2024 Sep 02
1
Big speedup in install.packages() by re-using connections
On 4/25/24 17:01, Ivan Krylov via R-devel wrote:
> On Thu, 25 Apr 2024 14:45:04 +0200
> Jeroen Ooms <jeroenooms at gmail.com> wrote:
>
>> Thoughts?
> How verboten would it be to create an empty external pointer object,
> add it to the preserved list, and set an on-exit finalizer to clean up
> the curl multi-handle? As far as I can tell, the internet module is not
>
2000 Nov 07
0
error handling
Hello R developers,
Platform: Windows 2000.
Compiler: GNU GCC - 2.95.2 (CRTDLL)
I have a C function for evaluating commands using eval(SEXP,SEXP) which is
included in a personal make of R.dll. (Similiar to R_Proxy_evaluate() in
rproxy_impl.c) Using SETJMP to catch errors works but there is a problem.
For example, the following code:
if (SETJMP(R_ToplevelContext->cjmpbuf)) //
2009 Apr 29
1
Dynamic visualisation of R data using Adobe FLEX
Hi useRs,
I had posted about Adobe FLEX talking to R for rich visualisation.
Reply from Jeffery Horner contained links to the
revolution-computing.com webpage which had information pertaining to
the Bay Users R group Meetup on Web Dashboards with R.
I have a very specific project that I need to implement.
I wish to use the graphics capabilities provided by Adobe FLEX to
visualise outputs from R.
2005 Oct 10
2
Catching warning and error output
Hi all,
I'm working on a GUI frontend for R, and I'm looking for a good way to catch
all warning- and error-output. The reason for this is mostly, that I would
like to know, which sections of the output are "normal" output, warnings, and
errors. This would allow for some nice features, such as highlighting
warnings and errors in a different color, or popping up a message
2018 May 18
0
Error message truncation
Help pages for stop/warning reference the option "warning.length", e.g.
from ?stop:
Errors will be truncated to getOption("warning.length") characters, default
> 1000.
Essentially the same is in ?warning.
Neither of these mention the hard-coded limits on the acceptable values of
this option in options.c
2006 Aug 31
1
Overriding InitTempDir
For embedded projects, one may want to eliminate the per-session temp
directory created by InitTempDir() and just use a system-specific temp
directory. Here's my solution:
extern char *R_TempDir;
void my_InitTempDir()
{
char *tmp;
if (R_TempDir){
if (rmdir(R_TempDir) != 0){
perror("Fatal Error: could not remove R's TempDir!");
2002 May 17
1
Re: [R] options()$warn==2 and try() (PR#1570)
>
> I have a function called FitModels(), which simply takes in the
> names of a data.frame and two variable names within that data.frame, and
> fits and returns a list of objects from 2 coxph() fits, one main effects and
> one interaction model. Sometimes the two variables are such that there is a
> warning message: convergence has not been reached, or the X matrix is
>
2007 Jan 18
0
Emulating a REPL in frontends
A common need in R frontends is to provide some sort of read, (parse),
evaluate, print loop. However, there are also a number of points where
frontends may want to differ from the standard REPL as available e.g. in
R_ReplDLLdo1().
First some thoughts on what is needed, and what is already there, or missing.
If you want to skip over this, a short summary is provided in the second
half, below
2002 Apr 11
1
segmentation violation when closing the data entry window (PR#1453)
[This is on Redhat Linux 7.1, using sawfish window manager under gnome:
Version:
platform = i686-pc-linux-gnu
arch = i686
os = linux-gnu
system = i686, linux-gnu
status = Under development (unstable)
major = 1
minor = 5.0
year = 2002
month = 04
day = 11
language = R
Search Path:
.GlobalEnv, package:ctest, Autoloads, package:base
]
If I close the data.entry() window using the Window
2006 Oct 02
0
2.3.1: interacting bugs in load() and gzfile() (PR#9271)
Hello,
If repeated calls are made to save() using the same pre-opened gzfile
connection to a file, and then the connection is closed, the objects
saved by the second and subsequent calls are not correctly restored by
repeated calls to load() with a new gzfile connection to the same file.
What follows are a session exposing the bugs, analysis (see ANALYSIS),
patches (see PATCHES), and a session
2005 May 13
2
add Rvsnprintf to API ??
Could Rvsnprintf (in src/main/errors.c) be added to the R API
with prototype in include/R_ext/Print.h say?
Here's my problem. I'm trying to write some code that is not
totally tied to R. Hence I want R style error messaging to
be isolated in a small module. I do not want #include <R.h>
and calls to error (Rf_error) in most of my code.
Hence I want to write a module with something
2009 Mar 03
1
profiler and loops
Hello,
(This is follow up from this thread:
http://www.nabble.com/execution-time-of-.packages-td22304833.html but
with a different focus)
I am often confused by the result of the profiler, when a loop is
involved. Consider these two scripts:
script1:
Rprof( )
x <- numeric( )
for( i in 1:10000){
x <- c( x, rnorm(10) )
}
Rprof( NULL )
print( summaryRprof( ) )
script2:
2013 Jul 13
2
missing PROTECT() in src/main/arithmetic.c
at lines 651 & 653 (integer_binary function):
if (code == DIVOP || code == POWOP)
ans = allocVector(REALSXP, n);
else
ans = allocVector(INTSXP, n);
There are calls to warningcall() later in the function, which can
trigger garbbage collection.
Looks like the typical scenario where it seemed pretty safe to not
PROTECT in the original version of the function but
help with gotoExitingHandler(R_NilValue, call, entry); . Implementation of error handling internally
2014 Feb 26
1
help with gotoExitingHandler(R_NilValue, call, entry); . Implementation of error handling internally
Hello,
I?m trying to leverage R_ToplevelExec to implement C level try/catch.
The way it is implemented allows for running a function in a top level context. This context gets an empty handler stack, so either the function runs correctly or it jumps. When it jumps, it does not find a handler, so it jumps to the top level context.
R does not allow me to call begin context and end context
2005 Oct 17
1
RFC: API to allow identification of warnings and errors in the output stream
Dear R developers,
this mail is basically a summary / clarification of some previous mails I sent
to this list last week (subject "Catching warning and error output"). Duncan
Murdoch pointed out that these were badly organized, and suggested I repost,
collecting the main points previously spread out between several mails.
Problem statement:
In an application embedding R, I would
Control statements with condition with greater than one should give error (not just warning) [PATCH]
2017 Mar 03
2
Control statements with condition with greater than one should give error (not just warning) [PATCH]
I'd like to propose that the whenever the length of condition passed
to an if or a while statement differs from one, an error is produced
rather than just a warning as today:
> x <- 1:2
> if (x == 1) message("x == 1")
x == 1
Warning message:
In if (x == 1) message("x == 1") :
the condition has length > 1 and only the first element will be used
There are
2018 Jan 30
2
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
Hi Martin, Henrik,
Thanks for the follow up.
@Martin: I vote for 2) without *any* hesitation :-)
(and uniformity could be restored at some point in the
future by having prod(), rowSums(), colSums(), and others
align with the behavior of length() and sum())
Cheers,
H.
On 01/27/2018 03:06 AM, Martin Maechler wrote:
>>>>>> Henrik Bengtsson <henrik.bengtsson at gmail.com>
2018 Feb 01
0
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
>>>>> Herv? Pag?s <hpages at fredhutch.org>
>>>>> on Tue, 30 Jan 2018 13:30:18 -0800 writes:
> Hi Martin, Henrik,
> Thanks for the follow up.
> @Martin: I vote for 2) without *any* hesitation :-)
> (and uniformity could be restored at some point in the
> future by having prod(), rowSums(), colSums(), and others
>