Displaying 1 result from an estimated 1 matches for "pathtovalu".
Did you mean:
pathtovalue
2004 Dec 14
1
Multiple options for a package
...{
op = options(x)[[1]]
if (length(list(...))>0) op <- op[[c(...)]]
return(op)
}
--
Making possible calls like:
---
getOption("PkgName","set2","subset2","par1")
[1] 111
---
Then, I began to implement things
like SetPkgOption(pkg,value=NULL,pathToValue) and
getPkgOption(pkg,pathToValue)
But I wonder if this wont be easier / more efficient at the C level. Sorry:
I dont propose myself to make it, as my C skills are nearly null.
To recap:
- I need a way to set/get a lot of options for a package
- I am ready to go on with my appraoch, deliver...