Skip to content
Prev 5377 / 12125 Next

[R-pkg-devel] CensSpatial package error.

This indicates a programing error:


<bytecode: 0x56489c23c2f8>
<environment: namespace:CensSpatial>
  --- function search by body ---
Function FCi.fixo in namespace CensSpatial has this body.
  ----------- END OF FAILURE REPORT --------------
Error in if (class(V.inv) == "try-error") return(Inf) :
   the condition has length > 1
Calls: SAEMSCL


Yoiu see class(N.inv) has length > 1 hence if(cond) has a length > 1 
condition and cannot deal with it (well takes only the first value), 
hence rewrite to, e.g.,
if ("try-error" %in% class(V.inv))

Best,
Uwe Ligges
On 02.05.2020 01:41, Jos? Alejandro Ordo?ez wrote: