Displaying 2 results from an estimated 2 matches for "slotval".
Did you mean:
shoval
2007 Aug 08
2
Error: Cannot Coerce POSIXt to POSIXct when building package
...newbie here - please forgive me if this is a basic question. We have an
in house package built in R 2.2.1 (yes we're a little behind the times at
our firm)and would like to rebuild it using R 2.5.1. However, when I try
and build the package from source, I keep getting this error:
Error in as(slotVal, slotClass, strict = FALSE) :
no method or default for coercing "POSIXt" to "POSIXct"
Error : unable to load R code in package 'Mango'
Error: package/namespace load failed for 'Mango'
I tried defining a new method "as.POSIXct" in the package t...
2008 Apr 23
1
S4 default for coercing
...etMethod("TSmetax", signature(x="character"), definition=
function(x, ...){
new("TSmetax", serIDs=x, ExtractionDate=Sys.time()) } )
[1] "TSmetax"
> z <- new("TSmetax", serIDs="whatever", ExtractionDate= Sys.time())
Error in as(slotVal, slotClass, strict = FALSE) :
no method or default for coercing "POSIXt" to "OptionalPOSIXct"
(It did work in R-2.6.2.)
Paul
====================================================================================
La version fran?aise suit le texte anglais.
-------------------...