[Rd] private variables in package.

2007-05-25 Thread Vladimir Eremeev
I am sorry, my previous questions about hiding variables from users in a package were obscure and vague, and would like to clarify them. This should be a basic question. I am writing my first package. It has several functions, which should be callable by users. These functions use several

Re: [Rd] private variables in package.

2007-05-25 Thread Vladimir Eremeev
Thank you for the answer. Here is everything. ac9wl-c(412,440,488,510,532,555,650,676,715) ac9nw-length(ac9wl) AB2C -function(a,b,model.type=S) { nza-dim(a)[1] nwa-dim(a)[2] nzb-dim(b)[1] nwb-dim(b)[2] if(nza!=nzb || nwa!=ac9nw || nwb!=ac9nw) { warning('AB2C: Dimensions of the

Re: [Rd] private variables in package.

2007-05-25 Thread Duncan Murdoch
On 5/25/2007 7:27 AM, Vladimir Eremeev wrote: Thank you for the answer. Here is everything. ac9wl-c(412,440,488,510,532,555,650,676,715) ac9nw-length(ac9wl) AB2C -function(a,b,model.type=S) { nza-dim(a)[1] nwa-dim(a)[2] nzb-dim(b)[1] nwb-dim(b)[2] if(nza!=nzb ||

Re: [Rd] private variables in package.

2007-05-25 Thread Vladimir Eremeev
I do use this function. Here is the example session, run from the newly created directory, without .Rdata and .Rhistory files. === begin R version 2.5.0 Patched (2007-05-13 r41549) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with

Re: [Rd] private variables in package.

2007-05-25 Thread Prof Brian Ripley
R has debugging features: see 'Writing R Extensions'. Please make use of them, e.g. options(error=recover) will enable you to explore the environments that are visible. We can only guess at this, not having function AB2C. On Fri, 25 May 2007, Vladimir Eremeev wrote: I am sorry, my previous