Thank you for those pieces of information, Mauro. I shall update the
version for 2.1.6 so that a single specimen can be digitized and there is a
check for the length of scale and length of filelist.

Em

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Emma Sherratt, PhD.

Lecturer in Zoology,
Zoology Division, School of Environmental and Rural Science,
Room L112 Bldg C02,
University of New England,
Armidale, NSW, Australia, 2351
Tel: +61 2 6773 5041
email: [email protected]
Twitter: @DrEmSherratt

Caecilians are legless amphibians...

*                      __
    (\   .-.   .-.   /_")
     \\_//^\\_//^\\_//
      `"`   `"`   `"`*

learn more about them here: www.emmasherratt.com/caecilians




On 22 June 2015 at 11:45, Mauro Cavalcanti <[email protected]> wrote:

> Dear Emma,
>
> Thanks for your message. In fact, I had been able to solve the "problem"
> (that is, avoid the error message from R) by assuring that the length of
> the scale vector is equal to the length of the filelist variable; if said
> vector is shorter than the file list, than the message appears. By keeping
> the file list and the scale vector to the same length, no error message is
> displayed when the last specimen is reached and the functions returns
> normally to the R command prompt.
>
> But when attempting to digitize just *one* image file, I got the error
> message below:
>
> Error in if (dim(newdata)[3] != length(filelist)) { :
>   missing value where TRUE/FALSE needed
>
> It seems that a minimum of three specimens is required for using the
> digitizing function of geomorph, so a warning messagem should be issued to
> avoid the above message (whis is as ugly as all error messages in R).
>
> Best regards,
>
> 2015-06-21 21:15 GMT-03:00 Emma Sherratt <[email protected]>:
>
>> Dear Mauro,
>>
>> I cannot replicate at my end the ugly error message you mentioned occurs
>> for you when the function reaches the end of filelist. I have added a line
>> now to say:
>> "All specimens in filelist have been digitized to tpsfile.tps". But I
>> don't think this would fix what you are talking about. Please can you send
>> me a copy of this error?
>>
>> Emma
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Emma Sherratt, PhD.
>>
>> Lecturer in Zoology,
>> Zoology Division, School of Environmental and Rural Science,
>> Room L112 Bldg C02,
>> University of New England,
>> Armidale, NSW, Australia, 2351
>> Tel: +61 2 6773 5041
>> email: [email protected]
>> Twitter: @DrEmSherratt
>>
>> Caecilians are legless amphibians...
>>
>> *                      __
>>     (\   .-.   .-.   /_")
>>      \\_//^\\_//^\\_//
>>       `"`   `"`   `"`*
>>
>> learn more about them here: www.emmasherratt.com/caecilians
>>
>>
>>
>>
>> On 9 June 2015 at 06:58, Mauro Cavalcanti <[email protected]> wrote:
>>
>>> Dear members of the geomorph Development Team,
>>>
>>> I have been using the digitize2d() function of the geomorph R package to
>>> obtain landmark coordinates from my fish specimens.It works fine, but I
>>> respectfully have two suggestions for its improvement.
>>>
>>> First one is quite simple: when end of file is reached and the last
>>> specimen has been digitized, the function stops with one of those ugly and
>>> arcane error messages (well, all programming languages generate ugly and
>>> arcane error messages! ;-)). This should not happen; instead, the function
>>> should issue a user-friendly warning, like "End of file", "Last specimen"
>>> (or perhaps something less "friendly", like "Can't you see you have reached
>>> the end of file, you moron?" ;-))
>>>
>>> Second suggestion may be more difficult to implement, but if it can be
>>> done, it would provide a great improvement: the ability to edit a
>>> previoulsly created file. Currently, the function detects the specimens
>>> without landmark coordinates and starts digitizing from this specimen on;
>>> if all specimens have already landmark coordinates, then the function stops
>>> with the same ugly error messages referred to above. It would be really
>>> great if one could see each specimen with the superimposed digitized
>>> landmarks, one by one, so that landmarks could be checked, added, or
>>> deleted.
>>>
>>> Hope this helps!
>>>
>>> With warmest regards,
>>>
>>> --
>>> Dr. Mauro J. Cavalcanti
>>> E-mail: [email protected]
>>> Web: http://sites.google.com/site/maurobio
>>>
>>> --
>>> MORPHMET may be accessed via its webpage at http://www.morphometrics.org
>>>
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>>
>>
>
>
> --
> Dr. Mauro J. Cavalcanti
> E-mail: [email protected]
> Web: http://sites.google.com/site/maurobio
>

-- 
MORPHMET may be accessed via its webpage at http://www.morphometrics.org

To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].

Reply via email to