Displaying 20 results from an estimated 3000 matches similar to: "Will PrintWarnings remain non static?"
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!");
2023 Apr 26
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
? Sun, 23 Apr 2023 13:33:16 -0400
Laurent Gautier <lgautier at gmail.com> ?????:
> When tracing what happens during an error I found that
> verrorcall_dflt() in src/main/errors.c calls PrintWarnings(). That
> function is not part of R's C-API though.
I've tried reading the source code and came to a similar conclusion.
PrintWarnings() is required for warnings() to work
2010 Jul 02
2
Best way to determine if you're running 32 or 64 bit R on windows
Hi,
Is this sufficient?
if (.Machine$sizeof.pointer==4){
cat('32\n')
} else {
cat('64\n')
}
Or is it better to test something in R.version, say os?
I'd like to use this to specify appropriate linker arguments when
building the RMySQL windows package.
Jeff
--
http://biostat.mc.vanderbilt.edu/JeffreyHorner
2011 Apr 12
2
parse_Rd raises error when example section contains a quoted percent character
I was writing Rd documentation for a new package when I came across
this issue. Here's the smallest example:
> library(tools)
> cat("\\examples{x <- '<%=rnorm(1)%>'}\n",file=file.path(tempdir(),'test.Rd'))
> readLines(file.path(tempdir(),'test.Rd'))
[1] "\\examples{x <- '<%=rnorm(1)%>'}"
>
2013 Mar 06
1
Printing warning messages around R_tryEval
Hi!
In RKWard we use R_tryEval() at a number places to run R commands. In order to
make sure that any generated warnings become visible close to the problem, we
were following up (most of) these calls with Rf_PrintWarnings().
Rf_PrintWarnings() was never available in the headers (as far as I know), and
in r61771 the symbol has been hidden from libR.so. So this solution is no
longer
2006 Sep 29
1
Possible bug in Rcons_vprintf
In R-2-4-branch r39548, Rcons_vprintf is called from stdout_vfprintf
when R_Outputfile is NULL. When called and output is greater than
R_BUFSIZE, output is truncated to R_BUFSIZE. Here's a one-line fix:
Index: src/main/printutils.c
===================================================================
--- src/main/printutils.c (revision 39548)
+++ src/main/printutils.c (working
2015 Mar 06
1
R with Array Hashes
On Fri, Mar 6, 2015 at 9:36 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Jeff,
>
> Nice writeup and promising idea. From the "gimme numbers" department:
>
> - do you pass the R regression tests?
I made sure that the implementation passed 99% of the tests, however
there were two that gave differing results which I think are related
to traversing hashed
2023 Apr 23
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
Hi,
I have an embedded R, with the evaluation of expressions happening over
time during the lifespan of the process. I tried either `R_eval()` and
`R_tryEval()` for the evaluation. The issue I have is that the processing
of warnings does not happen until the process exits and/or R is shut down.
Evaluating `warnings()` returns NULL (NILSXP).
It seems like the warnings are stuck in a list out of
2006 Oct 05
1
littler release 0.0.6
What ?
------
We are pleased to announce version 0.0.6 of littler
What's new ?
------------
This version includes a bug fix or two as well as a number of small
enhancements to the documentation.
For OS X and the r/R confusion, our recommended suggestion is to call
configure using either the --program-suffix=X or --program-prefix=Y
option to have the binary and manual
2008 Jul 24
3
Should this PDF render correctly without font embedding?
A professor here at Vanderbilt sent me the following code. Each of the
text strings should right justify against the center vertical bar, but
because of font issues it doesn't. I understand that there are
workarounds, but I was just curious if this was consistent across all
platforms. On linux with R 2.7.1 and R-trunk (r46103), both acrobat
reader 8 and kpdf render it incorrectly. How
2008 Sep 04
1
Possible R graphics devices
Hello all,
I've been working on a new R Graphics device that targets Adobe's
Shockwave Flash format (SWF for short). It uses http://www.libming.org/
on the backend. Here are some example outputs so far:
http://160.129.129.41/~hornerj/plots/
Once you click on the above, choose a directory like 'smooth' and then
click on test.html to see a side-by-side comparison of the swf
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
2007 Mar 24
2
Subtle bug in do_basename
Hello,
I've been wondering why my no-optimization R-devel builds have been
hanging during "building/updating package indices ...". I tracked it
down with gdb to this line from do_basename in utils.c:
while ( *(p = buf + strlen(buf) - 1) == fsp ) *p = '\0';
Now, imagine if your compiler places the variable fsp immediately before
buf on the stack, and strlen(buf) is 0.
2007 Jul 07
1
R graphics device for flash apps
Byron,
I just read your blog (statcomp.blogspot.com, linked from your other
post) and rand across your idea of an R/Flash graphics device. I've also
been giving this some thought because of this amazing interactive flash app:
http://tools.google.com/gapminder
and others from http://www.gapminder.org/.
I would love more than anything to work on this. The only hitch is that
I'm so
2011 Feb 03
2
Creating a reference class object from a class definition in a package fails
Hi,
I'm trying to create a package that contains reference class
definitions from which users can create reference objects, but there
seems to be something awry.
My toy example creates an empty package via
package.skeleton('TestClass') to which I add the following R code:
TestClass <- setRefClass('TestClass',fields=c('name'))
Unfortunately my R console output
2012 Jan 11
1
Rook: software and specification for R web applications and servers
Dear ?useRs,
Rook version 1.0-3 has been submitted to CRAN. In the mean time you
can get it here:
https://github.com/jeffreyhorner/rRack/blob/master/Rook_1.0-3.tar.gz
The latest release contains support for deployment with rApache. Please see
3.6.5 and 3.6.6 under section 'Configuring rApache' in the manual:
http://www.rapache.net/manual.html#Configuring_rapache
What is Rook? A
2012 Jan 11
1
Rook: software and specification for R web applications and servers
Dear ?useRs,
Rook version 1.0-3 has been submitted to CRAN. In the mean time you
can get it here:
https://github.com/jeffreyhorner/rRack/blob/master/Rook_1.0-3.tar.gz
The latest release contains support for deployment with rApache. Please see
3.6.5 and 3.6.6 under section 'Configuring rApache' in the manual:
http://www.rapache.net/manual.html#Configuring_rapache
What is Rook? A
2007 Feb 21
1
Adding difftime objects to POSIXt objects
Hello,
?DateTimeClasses states that "one can add or subtract a number of
seconds or a 'difftime' object from a date-time object, but not add two
date-time objects."
So, is the below expected behavior?
> x <- Sys.time()
> x
[1] "2007-02-21 16:19:56 CST"
> x + as.difftime("1","%H")
[1] "2007-02-21 16:19:57 CST"
Warning
2006 Nov 03
1
R CMD BATCH: unable to start device PNG
And on that note, here is a function that I use to get around it:
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jeffrey Horner
Sent: Friday, November 03, 2006 10:01 AM
To: ryszard.czerminski at novartis.com
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] R CMD BATCH: unable to start device PNG
ryszard.czerminski
2009 Mar 31
3
RMySQL compile
I am trying to install RMySQL on OpenSolaris and need to pass some options
to configure.
Tried the 3 recommended ways of doing it and nothing works, configure
cannot
find the headers and the libs.
I ran configure manually and that worked fine
./configure CC=cc CFLAGS="-dalign -KPIC -xlic_lib=sunperf"
LDFLAGS="-L/usr/sfw/lib