Removing libraries or using a particular function
3
0
Entering edit mode
Daniel Brewer ★ 1.9k
@daniel-brewer-1791
Last seen 7.7 years ago
Hello, Another quick question that I am sure is answered somewhere on the net, but I have been unable to find. How do you unload a library? or alternative how do you use a particular version of a function? segment() is used by both the DNAcopy library and the tilingArray pathway. Many Thanks Dan -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addre...{{dropped}}
Cancer DNAcopy Cancer DNAcopy • 774 views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 7.7 years ago
Wolfgang Huber <huber at="" ebi.ac.uk=""> writes: > Hi Daniel et al. > > Mark Robinson ha scritto: >> ?detach >> example: detach(package:splines) >> >> For the 'segment' function, you can call: >> DNAcopy::segment >> or >> tilingArray::segment > > AfaIu, "detach(x)" works mostly but not 100%. It does not revert every > possible change to the state of R that "library(x)" may have triggered. > So I would not like to rely on it. (And I would be happy to be corrected > if this statement is too pessimistic.) Probably only slightly :-) detach("package:tilingArray", unload = TRUE) will: * Detach the package from the search path * _Attempt_ to unload the package's namespace. This will fail if another package is currently loaded that imports this namespace. You get a warning if it fails. * Finally, iff unloading the namespace succeeded, the S4 methods cache is refreshed. If this doesn't occur, S4 methods will still be there but may or may not be on the search path. * There are also issues with dynamically loaded libs. Not all packages request their lib to be unloaded; not all OSes can support such an operation in the first place. > For the question that you asked, the "::" syntax is preferable. There is > no guarantee (or reason to expect) that names in a package universe > contributed by many people could be unique. I agree and learning to use "::" is good advice. If you get tired of typing all of that in a session, you can make yourself an alias: ta_seg = tilingArray::segment Best, + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org
ADD COMMENT
0
Entering edit mode
Jarno Tuimala ▴ 140
@jarno-tuimala-1650
Last seen 7.7 years ago
Hi! A package can be unloaded using the detach-command: detach(package:DNAcopy) or detach(package:tilingArray) Regards, Jarno On Tue, 17 Jul 2007, Daniel Brewer wrote: > Hello, > > Another quick question that I am sure is answered somewhere on the net, > but I have been unable to find. How do you unload a library? or > alternative how do you use a particular version of a function? > > segment() is used by both the DNAcopy library and the tilingArray pathway. > > Many Thanks > > Dan > > -- > ************************************************************** > Daniel Brewer, Ph.D. > > Institute of Cancer Research > Email: daniel.brewer at icr.ac.uk > ************************************************************** > > The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. > > This e-mail message is confidential and for use by the addre...{{dropped}} > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor > ---------------------------------------------------------------------- ------- Jarno Tuimala, FT, bioinformatiikan asiantuntija, CSC, PL 405, 02101 Espoo puh.: (09) 457 2226, fax: (09) 457 2302, s-posti: jarno.tuimala at csc.fi CSC on tieteen tietotekniikan keskus, http://www.csc.fi/molbio Jarno Tuimala, PhD, bioinformatics, CSC, P.O.Box 405, FI-02101 Espoo, Finland tel.: +358 9 457 2226, fax: +358 9 457 2302, e-mail: jarno.tuimala at csc.fi CSC is the Finnish IT Center for Science, http://www.csc.fi/molbio
ADD COMMENT
0
Entering edit mode
Mark Robinson ★ 1.1k
@mark-robinson-2171
Last seen 7.7 years ago
Hi Dan. Have a look at: ?detach example: detach(package:splines) For the 'segment' function, you can call: DNAcopy::segment or tilingArray::segment Cheers, Mark On 17/07/2007, at 7:29 PM, Daniel Brewer wrote: > Hello, > > Another quick question that I am sure is answered somewhere on the > net, > but I have been unable to find. How do you unload a library? or > alternative how do you use a particular version of a function? > > segment() is used by both the DNAcopy library and the tilingArray > pathway. > > Many Thanks > > Dan > > -- > ************************************************************** > Daniel Brewer, Ph.D. > > Institute of Cancer Research > Email: daniel.brewer at icr.ac.uk > ************************************************************** > > The Institute of Cancer Research: Royal Cancer Hospital, a > charitable Company Limited by Guarantee, Registered in England > under Company No. 534147 with its Registered Office at 123 Old > Brompton Road, London SW7 3RP. > > This e-mail message is confidential and for use by the add...{{dropped}}
ADD COMMENT
0
Entering edit mode
Hi Daniel et al. Mark Robinson ha scritto: > ?detach > example: detach(package:splines) > > For the 'segment' function, you can call: > DNAcopy::segment > or > tilingArray::segment AfaIu, "detach(x)" works mostly but not 100%. It does not revert every possible change to the state of R that "library(x)" may have triggered. So I would not like to rely on it. (And I would be happy to be corrected if this statement is too pessimistic.) For the question that you asked, the "::" syntax is preferable. There is no guarantee (or reason to expect) that names in a package universe contributed by many people could be unique. Best wishes Wolfgang ------------------------------------------------------------------ Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber
ADD REPLY

Login before adding your answer.

Traffic: 136 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6