R-alpha: misc 0.16

Paul Gilbert (la-jassine@aix.pacwan.net)
Sat, 08 Feb 1997 04:39:46 -0400


Date: Sat, 08 Feb 1997 04:39:46 -0400
To: R-testers@stat.math.ethz.ch
From: Paul Gilbert <la-jassine@aix.pacwan.net>
Subject: R-alpha: misc 0.16

Installation and help  installation went fine on Linux-elf. Following are
three errors(?)  in the new features of 0.16 and  two older problems not yet
fixed.
______________
The search path does not seem to indicate when libraries are added:

> library("test")
> search()
[1] ".GlobalEnv" ".SystemEnv"

and the following may be related:
> detach("test")
detach("test")
Error: invalid name
> 
______________

I'm not sure if the following is suppose to be supported, but it is not.

> attach("/apps/R/library/test")
Error: attach only works for lists and data frames
>  

In S I believe the only differences between attach() and library() are the
default
position in the search path (first for attach and last for library) and that
.First.lib is executed by library(), so I would guess it should not be too 
difficult to make this work.
______________

.First.lib is not yet supported. It would be useful for loading compiled
code and data sets.

______________

R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.16  (Released: February 7, 1997)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" for details.

> old.par <- par()
> par(old.par)
Error: attempt to set invalid value for graphics parameter "lwd".

This makes reseting parameters on.exit difficult.

_______________

In summary.default please change the lines

			sumry[i, 2] <- if (is.object(ii)) 
				class(ii)

to
			sumry[i, 2] <- if (is.object(ii)) 
				paste(class(ii), collapse=" ")

so that summary.default works with lists of lists.

___________________

I'm not sure if the following is suppose to be supported, but it is not.

> z <- list(a=1,b=2)
z <- list(a=1,b=2)
> z["c"] <- 3
z["c"] <- 3
Error: subscript out of bounds
> 


Paul Gilbert

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-