[R] customising installed libraries

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jan 22 16:45:36 CET 2004


Wolski wrote:
> There are the concept of private and public functions in the new version.
> There are a file in the root directory of the lib

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.
> I by myself do not know much more. There are more info in the R-ext.pdf (R extensions).

Right, that manual is called "Writing R Extensions".


> Probably you have to add your new function name to this file.
> Eryk


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



> *********** REPLY SEPARATOR  ***********
> 
> On 1/22/2004 at 2:08 PM Stephen Henderson wrote:
> 
> 
>>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:
>>
>>
>>>hello
>>>
>>>I am returning to some libraries that I had previously customised by
>>>amongst
>>>other things adding additional functions. I had simply typed these new
>>>functions into the file in library/R/thelibrary. These however do not
>>
>>seem
>>
>>>to be loaded now as they previously were under older versions of R. 
>>>
>>>What's changed and what do i need to do?
>>>
>>>Thanks
>>>Stephen
>>>
>>>
>>>**********************************************************************
>>>This email and any files transmitted with it are
>>
>>confidentia...{{dropped}}
>>
>>>______________________________________________
>>>R-help at stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide!
>>
>>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 confidential and
>>intended solely for the use of the individual or entity to whom they
>>are addressed. If you have received this email in error please notify
>>the system manager (wibr.mail at ucl.ac.uk). All files are scanned for
>>viruses.
>>**********************************************************************
> 
> 
> 
> 
> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list