Skip to content
Prev 9981 / 63421 Next

Packages, generics, S3 and S4

Thank you for assistance on this.

I have created the empty file "install.R" in the right place, and used 

Rcmd build its --binary

If I then use 

Rcmd INSTALL its --save

Everything works fine, with the generics along with other functions listed 
when I do ls(2) and not when I do ls().

However if I load the zip using the menu in RGUI,I get different behaviour.

When I load the package, I get
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in open.connection(con, "rb") : unable to open connection
In addition: Warning message: 
cannot open compressed file `C:/PROGRA~1/R/rw1071/library/its/R/all.rda' 
Error in library(pkg, character.only = TRUE) : 
        .First.lib failed

I have looked at ?install.packages, but cannot see the 'saved image' option,
equivalent to --save on Rcmd INSTALL.

Is the RGUI installation of the zip file a bad idea?  Or perhaps I have
missed
out some qualifier in the Rcmd build stage?

Another issue is the one I referred to before - that Rcmd CHECK still errors
on
the examples.  I can get around it of course using dontrun, but of course
this 
a workaround and not a solution.

I have re-read section 1.3 of 'Writing R Extensions' and still can't fathom
these out - any further help will be gratefully received.  If it is along
the lines of RTFM, a page or section reference would be appreciated :)

Regards

Giles Heywood
Portfolio & Risk Advisory Group
Commerzbank Securities

tel	 + 44 20 7653 7009
fax	 + 44 20 7562 5347
mobile + 44 7973 266343
mailto:giles.heywood@commerzbankib.com
60 Gracechurch Street, London EC3V 0HR, U.K.
http://www.cbksec.com/rsh/portfolio&risk.html
********************************************************************** 
This is a commercial communication from Commerzbank AG.\ \ T...{{dropped}}