Displaying 4 results from an estimated 4 matches for "r_opensitefil".
Did you mean:
r_opensitefile
1999 Nov 04
1
R_OpenSiteFile: Do not use a null ptr as filename in fopen (PR#312)
I get crashes when I call R without any arguments and having no
environment variables R_PROFILE and RPROFILE.
The reason is, that in unix/sys-common.c in R_OpenSiteFile() fopen
is called with a null ptr as filename (because this is the outcome
of getenv()).
Although most compilers seem to interpret this as "file not found",
this is an undefined behavior concerning to all C standards I could get
hold of.
A request in comp.lang.c gave the following re...
2010 Mar 05
2
[PATCH] R ignores PATH_MAX and fails in long directories (PR#14228)
...[256];
+ char buf[PATH_MAX];
FILE *fp;
- snprintf(buf, 256, "%s/library/base/R/Rprofile", R_Home);
+ snprintf(buf, PATH_MAX, "%s/library/base/R/Rprofile", R_Home);
fp = R_fopen(buf, "r");
return fp;
}
@@ -82,7 +82,7 @@
attribute_hidden
FILE *R_OpenSiteFile(void)
{
- char buf[256];
+ char buf[PATH_MAX];
FILE *fp;
fp = NULL;
@@ -90,10 +90,10 @@
if ((fp = R_fopen(getenv("R_PROFILE"), "r"))) return fp;
if ((fp = R_fopen(getenv("RPROFILE"), "r"))) return fp;
#ifdef R_ARCH
-...
1999 Nov 07
1
Bug list summary (automatic post)
...nts of the contrib
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Wed, 3 Nov 1999 07:53:58 +0000 (GMT)
* PR# 311 *
Subject: bug in Rdconvlib.pl converting to latex
From: Ray Brownrigg <Ray.Brownrigg@mcs.vuw.ac.nz>
Date: Thu, 4 Nov 1999 11:16:49 +1300 (NZDT)
* PR# 312 *
Subject: R_OpenSiteFile: Do not use a null ptr as filename in fopen
From: Thomas Hoffmann <hoffmann@ehmgs2.et.tu-dresden.de>
Date: Thu, 4 Nov 1999 10:08:45 +0100 (MET)
* PR# 313 *
Subject: rpart problem
From: "Potter, David M" <david_m_potter@groton.pfizer.com>
Date: Fri, 5 Nov 1999 13:09:50 -0500...
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