Error with convert.inp

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

Error with convert.inp

Postby claudiapenaloza » Wed Dec 28, 2011 1:17 pm

Hello all,

I've been trying to convert an .inp file created from a MARK simulation output and use it in RMark.
This is the code and resulting error:
Code: Select all
> msrcv <- convert.inp("msrcv_sim.inp")
Warning message:
In readLines(inp.filename) : incomplete final line found on 'msrcv_sim.inp'

What does this mean? What is wrong with this .inp, it looks fine to me (and it runs in MARK)?

Here is the head and tail of the .inp file:
Code: Select all
> msrcv[1:5,]
                                                ch freq
1 0000100011000000000000D0000000000000000000000000    1
2 010010000000000000000000000000001000110010000000    1
3 100010D00000000000000000000000000000000000000000    2
4 01000000000011D000000000000000000000000000000000    1
5 000000000100110011000000000000000000010000000000    1


Code: Select all
> msrcv[1364:1369,]
                                                   ch freq
1364 000000000000000000000000000000000000000010001100    1
1365 000000000000000000000000000011000000110000D00000    1
1366 000000000000000000000000000000000100000001000000    1
1367 00000000000000000000000000000000010010D000000000    1
1368 000000000000000000000000000000001000010011000000    1
1369 0000000000000000000000000000000000000000110000D0    1


I was able to use this input file in MARK and run a model without errors. My models won't run in RMark and I'm wondering if this error is the cause.

I'm still working out bugs in the rest of my RMark script... I will probably post those soon to see if therein lie(s) the problem(s).

Thank you,
Claudia
claudiapenaloza
 
Posts: 63
Joined: Tue Sep 23, 2008 9:48 pm
Location: York, SC

Re: Error with convert.inp

Postby jlaake » Wed Dec 28, 2011 1:20 pm

Go to end of last line of inp file and hit Enter to include a carriage return. The line is "incomplete" if it doesn't have a cr at the end. --jeff
jlaake
 
Posts: 1479
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: Error with convert.inp

Postby claudiapenaloza » Wed Dec 28, 2011 1:33 pm

Really???? That's it? :shock: duh!
Thanks Jeff
:oops:
claudiapenaloza
 
Posts: 63
Joined: Tue Sep 23, 2008 9:48 pm
Location: York, SC


Return to RMark

Who is online

Users browsing this forum: No registered users and 0 guests