Skip to content

customising installed libraries

4 messages · Stephen Henderson, Wolski, Brian Ripley +1 more

#
I had quit q() R, reloaded and loaded ipred anew. Trying
detach(package:ipred) makes no difference. I added a few pointless lines to
one existing function and can see these when I call the function, passing no
parameters. thats why i was assuming it was an R thing.

is this just some mysterious problem with my computer/ setup/ files?? not
R??

-----Original Message-----
From: Wolski
To: Stephen Henderson
Cc: 'r-help at stat.math.ethz.ch'
Sent: 1/22/04 1:58 PM
Subject: Re: [R] customising installed libraries

Have you executed first
detach(package:library)
before loading the library again?

Eryk
*********** REPLY SEPARATOR  ***********
On 1/22/2004 at 1:47 PM Stephen Henderson wrote:

            
seem
confidentia...{{dropped}}
http://www.R-project.org/posting-guide.html



Dipl. bio-chem. Eryk Witold Wolski    @    MPI-MG Dep. Vertebrate
Genomics   
Ihnestrasse 73 14195 Berlin          'v'    
tel: 0049-30-84131285               /   \    
mail: wolski at molgen.mpg.de        ---W-W----
http://www.molgen.mpg.de/~wolski 


**********************************************************************
This email and any files transmitted with it are confidentia...{{dropped}}
#
There are the concept of private and public functions in the new version.
There are a file in the root directory of the lib where public functions can be entered.
I by myself do not know much more. There are more info in the R-ext.pdf (R extensions).
Probably you have to add your new function name to this file.
Eryk

*********** REPLY SEPARATOR  ***********
On 1/22/2004 at 2:08 PM Stephen Henderson wrote:

            
Dipl. bio-chem. Eryk Witold Wolski    @    MPI-MG Dep. Vertebrate Genomics   
Ihnestrasse 73 14195 Berlin          'v'    
tel: 0049-30-84131285               /   \    
mail: wolski at molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski
#
ipred has a NAMESPACE: you cannot do this to packages that have 
namespaces without changing the NAMESPACE file (and from the next release, 
you will need to reinstall as well).

You can read about this in `Writing R Extensions', but is it a good idea 
to be altering a package that uses concepts you do not understand?

I believe you mean `installed packages'.
On Thu, 22 Jan 2004, Stephen Henderson wrote:

            

  
    
#
Wolski wrote:
Dear all,

it's called a *package* which is installed within a library.

The "file" you are talking about is called NAMESPACE. It is used to 
configure whether a package has a namespace and which functions are 
exported etc.


 > where public functions can be entered.
Right, that manual is called "Writing R Extensions".
Why do you edit code in a binary version of a package?

Either use your own pacakges to add functionality or, if really 
required, change the code of other packages in the packages' sources and 
install from sources again (preferably under a different name in order 
not to mess up with the original package).

Uwe Ligges