Displaying 20 results from an estimated 21 matches for "rmethodutils".
2019 Jun 22
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...;missing") :
'length(x) = 4 > 1' in coercion to 'logical(1)'
Error: unable to load R code in package 'oligo'
is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
'methods' package. Here's the patch:
$ svn diff src/library/methods/R/RMethodUtils.R &
[1] 1062
Index: src/library/methods/R/RMethodUtils.R
===================================================================
--- src/library/methods/R/RMethodUtils.R (revision 76731)
+++ src/library/methods/R/RMethodUtils.R (working copy)
@@ -343,7 +343,7 @@
call. = TRUE, domain =...
2019 Jun 23
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...cion to 'logical(1)'
> > Error: unable to load R code in package 'oligo'
> >
> > is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
> > 'methods' package. Here's the patch:
> >
> > $ svn diff src/library/methods/R/RMethodUtils.R &
> > [1] 1062
> > Index: src/library/methods/R/RMethodUtils.R
> > ===================================================================
> > --- src/library/methods/R/RMethodUtils.R (revision 76731)
> > +++ src/library/methods/R/RMethodUtils.R (working copy)
> &...
2019 Jun 25
3
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...de in package 'oligo'
> >> >
> >> > is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
> >> > 'methods' package. Here's the patch:
> >> >
> >> > $ svn diff src/library/methods/R/RMethodUtils.R &
> >> > [1] 1062
> >> > Index: src/library/methods/R/RMethodUtils.R
> >> > ===================================================================
> >> > --- src/library/methods/R/RMethodUtils.R (revision 76731)
> >> &g...
2019 Jun 23
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...h(x) = 4 > 1' in coercion to 'logical(1)'
> Error: unable to load R code in package 'oligo'
>
> is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
> 'methods' package. Here's the patch:
>
> $ svn diff src/library/methods/R/RMethodUtils.R &
> [1] 1062
> Index: src/library/methods/R/RMethodUtils.R
> ===================================================================
> --- src/library/methods/R/RMethodUtils.R (revision 76731)
> +++ src/library/methods/R/RMethodUtils.R (working copy)
> @@ -343,7 +343,7 @@
>...
2019 Jun 24
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...rror: unable to load R code in package 'oligo'
>> >
>> > is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
>> > 'methods' package. Here's the patch:
>> >
>> > $ svn diff src/library/methods/R/RMethodUtils.R &
>> > [1] 1062
>> > Index: src/library/methods/R/RMethodUtils.R
>> > ===================================================================
>> > --- src/library/methods/R/RMethodUtils.R (revision 76731)
>> > +++ src/library/method...
2007 May 27
2
[Bioc-devel] promptClass
...n 1:nmeths) {
- .sigmat <- sigsList(methnms[i], where)
+ .sigmat <- sigsList(methnms[i], where=whereClass)
for (j in seq_along(.sigmat)) {
if (!all(is.na(match(.sigmat[[j]],clName)))) {
methn.i <- escape(methnms[i])
Index: RMethodUtils.R
===================================================================
--- RMethodUtils.R (revision 41719)
+++ RMethodUtils.R (working copy)
@@ -621,7 +621,7 @@
getMethodsMetaData <-
## get the methods meta-data for function f on database where
function(f, where = topenv(parent.f...
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...e 'oligo'
>>>>>>
>>>>>> is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
>>>>>> 'methods' package. Here's the patch:
>>>>>>
>>>>>> $ svn diff src/library/methods/R/RMethodUtils.R &
>>>>>> [1] 1062
>>>>>> Index: src/library/methods/R/RMethodUtils.R
>>>>>> ===================================================================
>>>>>> --- src/library/methods/R/RMethodUtils.R (revision 76731)
>>>...
2019 Jun 25
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...oad R code in package 'oligo'
>>>>>
>>>>> is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
>>>>> 'methods' package. Here's the patch:
>>>>>
>>>>> $ svn diff src/library/methods/R/RMethodUtils.R &
>>>>> [1] 1062
>>>>> Index: src/library/methods/R/RMethodUtils.R
>>>>> ===================================================================
>>>>> --- src/library/methods/R/RMethodUtils.R (revision 76731)
>>>>> +++ src...
2019 Jun 27
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...t;>>
>>>>>>> is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
>>>>>>> 'methods' package. Here's the patch:
>>>>>>>
>>>>>>> $ svn diff src/library/methods/R/RMethodUtils.R &
>>>>>>> [1] 1062
>>>>>>> Index: src/library/methods/R/RMethodUtils.R
>>>>>>> ===================================================================
>>>>>>> --- src/library/methods/R/RMethodUtils...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...> omittedSig[omittedSig] <- (signature[omittedSig] != "missing")
>
> should do the trick.
yes, (most probably). I've found a version of that which should
be even easier to "read and understand", in svn commit 76753 :
svn diff -c 76753 src/library/methods/R/RMethodUtils.R
--- src/library/methods/R/RMethodUtils.R (Revision 76752)
+++ src/library/methods/R/RMethodUtils.R (Revision 76753)
@@ -342,8 +342,7 @@
gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2),
call. = TRUE, domain...
2003 Oct 11
2
Problem in 'methods' package (PR#4525)
...> con <- dbConnect(dbDriver("MySQL"), dbname = "test")
Error in dbConnect(dbDriver("MySQL"), dbname = "test") :
couldn't find function ".valueClassTest"
A dirty fix would be defining it by hand (from
src/library/methods/R/RMethodUtils.R) :
.valueClassTest <- function(object, classes, fname) {
(...)
}
(Which works), but ideally it'd be nice determning why the function is
not being defined on the first place.
2019 Jun 28
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
> On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote:
>
>>>>>> Henrik Bengtsson
>>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes:
>
>> Using:
>>
>> untrace(methods::conformMethod)
>> at <- c(12,4,3,2)
>> str(body(methods::conformMethod)[[at]])
>> ## language omittedSig
2019 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...ure[omittedSig] != "missing")
>>
>> should do the trick.
> yes, (most probably). I've found a version of that which should
> be even easier to "read and understand", in svn commit 76753 :
> svn diff -c 76753 src/library/methods/R/RMethodUtils.R
> --- src/library/methods/R/RMethodUtils.R (Revision 76752)
> +++ src/library/methods/R/RMethodUtils.R (Revision 76753)
> @@ -342,8 +342,7 @@
> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2),
> call...
2019 Jul 04
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...quot;missing")
? ? >>>
? ? >>> should do the trick.
? ? >> yes, (most probably).? I've found a version of that which should
? ? >> be even easier to "read and understand", in? svn commit 76753 :
? ? >> svn diff -c 76753 src/library/methods/R/RMethodUtils.R
? ? >> --- src/library/methods/R/RMethodUtils.R??? (Revision 76752)
? ? >> +++ src/library/methods/R/RMethodUtils.R??? (Revision 76753)
? ? >> @@ -342,8 +342,7 @@
? ? >> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature"...
2006 Sep 22
1
Possible bug in base::namespaceImportFrom?
Hi,
namespaceImportFrom in base/R/namespace.R has the following:
fdef <- methods:::getGeneric(genName, impenv)
The definition of getGeneric is in methods/R/RMethodUtils.R starts
with:
getGeneric <-
## return the definition of the function named f as a generic.
##
## If there is no definition, throws an error or returns
## NULL according to the value of mustFind.
function(f, mustFind = FALSE, where = .genEnv(f, topenv(parent.fr...
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...>>>>>>> is because of a '_R_CHECK_LENGTH_1_LOGIC2_=true' mistake in the
> >>>>>>> 'methods' package. Here's the patch:
> >>>>>>>
> >>>>>>> $ svn diff src/library/methods/R/RMethodUtils.R &
> >>>>>>> [1] 1062
> >>>>>>> Index: src/library/methods/R/RMethodUtils.R
> >>>>>>> ===================================================================
> >>>>>>> --- src/library/me...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
..."missing")
>>>
>>> should do the trick.
>> yes, (most probably). I've found a version of that which should
>> be even easier to "read and understand", in svn commit 76753 :
>> svn diff -c 76753 src/library/methods/R/RMethodUtils.R
>> --- src/library/methods/R/RMethodUtils.R (Revision 76752)
>> +++ src/library/methods/R/RMethodUtils.R (Revision 76753)
>> @@ -342,8 +342,7 @@
>> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...quot;missing")
>>>
>>> should do the trick.
>> yes, (most probably). I've found a version of that which should
>> be even easier to "read and understand", in svn commit 76753 :
>> svn diff -c 76753 src/library/methods/R/RMethodUtils.R
>> --- src/library/methods/R/RMethodUtils.R (Revision 76752)
>> +++ src/library/methods/R/RMethodUtils.R (Revision 76753)
>> @@ -342,8 +342,7 @@
>> gettextf("formal arguments (%s) omitted in the method definition cannot be in the signature", bad2...
2006 May 09
0
Typo in getAllMethods() (PR#8848)
...in the methods package uses the non-existent
function packageName where I believe the function getPackageName was
intended.
For example:
> getAllMethods("formula")
Error in sprintf(gettext(fmt, domain = domain), ...) :
could not find function "packageName"
The patch to RMethodUtils.R is here:
238c238
< warning(gettextf("'%s' from '%s' is a non-generic function;
no methods available", f, packageName(gwhere)), domain = NA)
---
> warning(gettextf("'%s' from '%s' is a non-generic function;
no methods avai...
2015 Jan 26
2
speedbump in library
>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>> on Mon, 26 Jan 2015 05:12:55 -0800 writes:
> A isNamespaceLoaded() function would be a useful thing to
> have in general if we are interested in readable code. An
> efficient implementation would be just a bonus.
Good point (readability), and thank you for the support!
Note