Hi,
by replacing 'll' with 'wh' in the source code for base::which() one
gets ~20% speed up for *named logical vectors*.
CURRENT CODE:
which <- function(x, arr.ind = FALSE)
{
if(!is.logical(x))
stop("argument to 'which' is not logical")
wh <- seq_along(x)[ll <- x & !is.na(x)]
Several folks have previously written that valgrind notices
a memory leak in R's readline code. It looks like it leaks
a copy of every input line.
% ~/R-svn/r-devel/R/bin/R --debugger=valgrind --debugger-args=--leak-check=full
--vanilla
==10725== Memcheck, a memory error detector.
==10725== Copy
This looks like a bug to me, and is a bit hard to describe, but easy to
reproduce.
Basically, if RNGkind is saved as something other than the default, and if the
first
operation in a session is a set.seed(), the default is reverted to. Reproduce
by:
cafe-rozo> R --vanilla
R version 2.7.1
Hi,
Yes I have this file already.
Yulia
On Thu, Jul 10, 2008 at 6:47 PM, Mathieu Ribatet
<[EMAIL PROTECTED]> wrote:
> Have you create a zzz.R file in the R folder? I think your issue is related
> to this...
>
> Example of the zzz.R file:
>
> ".First.lib" <-
> function(lib, pkg)
> {
> library.dy
Hi everyone,
In relation to the RODBC odbcClose bug which was fixed back in the
changelog below:
Version: 1.2-3 (2008-01-24, released)
* Plug a memory leak in inRODBCClose (closing a connection),
reported by Stephan Henne.
* Use translateChar() on character data sent
Have you create a zzz.R file in the R folder? I think your issue is
related to this...
Example of the zzz.R file:
".First.lib" <-
function(lib, pkg)
{
library.dynam("your_pkd_name", package = pkg, lib.loc = lib)
return(invisible(0))
}
This is required when you have C/Fortran code. See the wr
Hello,
I have difficulties in finding why I cannot load a custom R package in
Linux (Suse 10). When I run R CMD check for a package source folder I
get the following message:
".
Error in dyn.load(file, ...) :
unable to load shared library
'/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Ri