search for: otherpackage

Displaying 6 results from an estimated 6 matches for "otherpackage".

2014 Dec 21
0
loadNamespace and versionChecking and the otherpackage::otherfun syntax
...ong query - if it's too long please don't waste your time - just ignore it. To try and make it slightly more digestible it is divided into sections, as follows SCENARIO THE QUERY MY OWN ATTEMPTS TO UNDERSTAND AN ASIDE ABOUT loadNamespace AND Depends: VERSION CHECKS ON otherpackage::otherfun AT LOAD TIME? VERSION CHECKS ON otherpackage::otherfun AT EXECUTION TIME? POSSIBLE ANSWER 1 - THIS IS TOO COMPLEX AND HYPOTHETICAL POSSIBLE ANSWER 2 - THIS IS AN ISSUE FOR THE `::` FUNCTION POSSIBLE ANSWER 3 - loadNamespace SHOULD BE VERSION AWARE EVEN WHEN `::` IS U...
2007 Nov 14
4
library path in Rd link
Dear all, When creating new functions in a package, there is a "See also" component in the Rd file. Usually one uses \link{otherfun}, if the other function is from the same package, or \link[otherpackage]{otherfun} otherwise. The trouble is that I install new packages not in the default R library folder, but into some other subfolder in my home, so the link searches for "otherpackage" in my home subfolder. Is there a method to create links to functions from the base package, for exam...
2009 Mar 11
1
Using a NAMESPACE or the Imports field in DESCRIPTION?
Hello list, I am writing a package which builds on a function ("foo") of another package. I only need that particular function. What is the state of the art to do this? Do I need a NAMESPACE file in my package? Currently I still don't have one. Or can I do this with the Imports field in my DESCRIPTION file? Reading chapter 1 of the "Writing R Extensions" manual I do
2009 Jul 12
2
box and whisker (PR#13821)
In a Box and Whisker plot, I thought that when there are outliers both abov= e and below the whiskers, then the whiskers should both be the same length = (plus or minus 1.5 times the inter-quartile range). If you look at the plot for SilwoodWeather on p.155 of The R Book you will = see that for November (month =3D 11) the upper whisker is shorter than the = lower, while for other months with
2015 Mar 13
0
Ah I've got it now .Thanks! RE: Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
...espace is locked and hence its value cannot be changed. So `mypkg` needs to work on a copy of the metadata object if it needs to update the value of the metadata object (which in fact it does need to do). An alternative to copying might be to temporarily unlock the binding in the namespace of the otherpackage, update the object, and relock the binding - but since I have only just learnt about locking environments and bindings, I have no idea what the consequences of that might be. I'll leave well enough alone. Many thanks for helping me learn about this. Geoff PS Apologies if I have sent too muc...
2015 Jan 22
5
:: and ::: as .Primitives?
Hi all, When S4 methods are defined on base function (say, "match"), the function becomes a method with the body "base::match(x,y)". A call to such a function often spends more time doing "::" than in the function itself. I always assumed that "::" was a very low-level thing, but it turns out to be a plain old function defined in base/R/namespace.R. What