Skip to content

[R-pkg-devel] CensSpatial package error.

4 messages · José Alejandro Ordoñez, Uwe Ligges, Max Turgeon +1 more

#
Good evening,

My name is Jose and I'm the mantainer of the CensSpatial package. This
package was available as public but it was discharged because a problem
with the geoR orphan package.
That situation was solved and now I'm trying to resubmit the package. The
problem is that when I try to submit it, it does not pass the automatic
incoming checks,* even when I tested it using the function check available
in R studio without errors.*
Apparently is a problem with the OS Linux and Debian but I couldn't
identify it yet. I also tested it using the package rhub and ran
CensSpatial with different OS without results.

I'm provinding below the link to the source package and the error messages,
hoping to get some help from you.

https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0
<https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0&fbclid=IwAR1xeC1ArV-7IGBhatSil7u_aCjZbFoj3BDc_TD2fVq_pwGl5sdH8vgVuKQ>


In the link below, I cannot recognize what the error is. SOS!

https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log
<https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log?fbclid=IwAR2vaWkuHuyURbZH1WrUREFpmy4uO_XbXQd6leglq4CPPnn8HZgggm-1xMs>


Thanks for the attention.


Att,
Jos? Alejandro Ordo?ez.
Ph.D Student
UNICAMP.


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_2258293037509368237_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
#
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:
#
Hi Jos?,

The error message is pretty clear:

Error in if (class(V.inv) == "try-error") return(Inf) :
  the condition has length > 1

Instead of testing for equality of the class, you should use the function "inherits". Then, even if "class(V.inv)" has length greater than one, your condition in the if clause will be exactly TRUE or FALSE.

Best,

Max Turgeon
On May 2, 2020 10:07 AM, Jos? Alejandro Ordo?ez <ordonezjosealejandro at gmail.com> wrote:
********************************************************
Caution: This message was sent from outside the University of Manitoba.
********************************************************

Good evening,

My name is Jose and I'm the mantainer of the CensSpatial package. This
package was available as public but it was discharged because a problem
with the geoR orphan package.
That situation was solved and now I'm trying to resubmit the package. The
problem is that when I try to submit it, it does not pass the automatic
incoming checks,* even when I tested it using the function check available
in R studio without errors.*
Apparently is a problem with the OS Linux and Debian but I couldn't
identify it yet. I also tested it using the package rhub and ran
CensSpatial with different OS without results.

I'm provinding below the link to the source package and the error messages,
hoping to get some help from you.

https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0
<https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0&fbclid=IwAR1xeC1ArV-7IGBhatSil7u_aCjZbFoj3BDc_TD2fVq_pwGl5sdH8vgVuKQ>


In the link below, I cannot recognize what the error is. SOS!

https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log
<https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log?fbclid=IwAR2vaWkuHuyURbZH1WrUREFpmy4uO_XbXQd6leglq4CPPnn8HZgggm-1xMs>


Thanks for the attention.


Att,
Jos? Alejandro Ordo?ez.
Ph.D Student
UNICAMP.


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com<http://www.avast.com>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_2258293037509368237_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


______________________________________________
R-package-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
9 days later
#
I just wanted to add that <https://developer.r-project.org/Blog/public/2019/11/09/when-you-think-class.-think-again/index.html> is an interesting read on the topic. :-)



Den l?rdag 2 maj 2020 18:27:29 CEST, Max Turgeon <max.turgeon at umanitoba.ca> skrev: 





Hi Jos?,

The error message is pretty clear:

Error in if (class(V.inv) == "try-error") return(Inf) :
? the condition has length > 1

Instead of testing for equality of the class, you should use the function "inherits". Then, even if "class(V.inv)" has length greater than one, your condition in the if clause will be exactly TRUE or FALSE.

Best,

Max Turgeon
On May 2, 2020 10:07 AM, Jos? Alejandro Ordo?ez <ordonezjosealejandro at gmail.com> wrote:
********************************************************
Caution: This message was sent from outside the University of Manitoba.
********************************************************

Good evening,

My name is Jose and I'm the mantainer of the CensSpatial package. This
package was available as public but it was discharged because a problem
with the geoR orphan package.
That situation was solved and now I'm trying to resubmit the package. The
problem is that when I try to submit it, it does not pass the automatic
incoming checks,* even when I tested it using the function check available
in R studio without errors.*
Apparently is a problem with the OS Linux and Debian but I couldn't
identify it yet. I also tested it using the package rhub and ran
CensSpatial with different OS without results.

I'm provinding below the link to the source package and the error messages,
hoping to get some help from you.

https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0
<https://www.dropbox.com/sh/gp5iwubkgbv9r8s/AADvJg-GGHKzoMU_PHNWdcYea?dl=0&fbclid=IwAR1xeC1ArV-7IGBhatSil7u_aCjZbFoj3BDc_TD2fVq_pwGl5sdH8vgVuKQ>


In the link below, I cannot recognize what the error is. SOS!

https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log
<https://win-builder.r-project.org/incoming_pretest/CensSpatial_2.5_20200428_224633/Debian/00check.log?fbclid=IwAR2vaWkuHuyURbZH1WrUREFpmy4uO_XbXQd6leglq4CPPnn8HZgggm-1xMs>


Thanks for the attention.


Att,
Jos? Alejandro Ordo?ez.
Ph.D Student
UNICAMP.


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com<http://www.avast.com>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_2258293037509368237_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

? ? ? ? [[alternative HTML version deleted]]

______________________________________________
R-package-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


??? [[alternative HTML version deleted]]
______________________________________________
R-package-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel