[R] Same code - error in one PC but not in other
carl at witthoft.com
Thu Nov 7 20:01:13 CET 2013
In the absence of any description of the computers themselves, it's hard to
say, but there's a good chance that there is some object in your working
environment that's being accessed by your function -- and that object exists
on only one of the machines.
I would suggest you use debug() or browser() to see what the value of HP
and HP.LUT are in each case.
> I am running exactly the same code on two different computers. In PC1
> of the
> the code is working fine, whereas in PC2 I get this error
> Error in HP.LUT[, 1] : incorrect number of dimensions
> HP.LUT is an object within a function computed as HP.LUT <- which(HP
> arr.in=TRUE), where HP is a binary matrix.
> HP.LUT is not returned for further use. I have made sure that no object
> the name HP.LUT is present in either PC1 and 2, and I have used both
> and R 3.01.
> So I am puzzled and wonder what the reason for this might be.
> Any hint will be much appreciated.
> Thank you very much for your attention
> Juan A. Balbuena
> Dr. Juan A. Balbuena
> Marine Zoology Unit
> Cavanilles Institute of Biodiversity and Evolutionary Biology
> University of
> P.O. Box 22085
> 46071 Valencia, Spain
> e-mail: 
> tel. +34 963 543 658 fax +34 963 543 733
> NOTE! For shipments by EXPRESS COURIER use the following street
> C/ CatedrÃ¡tico JosÃ© BeltrÃ¡n 2, 46980 Paterna (Valencia), Spain.
> 1. http://www.uv.es/%7Ebalbuena
> 2. http://www.uv.es/cavanilles/zoomarin/index.htm
> 3. http://cetus.uv.es/mullpardb/index.html
> 4. mailto:
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://r.789695.n4.nabble.com/Same-code-error-in-one-PC-but-not-in-other-tp4679980p4679992.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help