[R-SIG-Mac] Question!

Nagode, Marko Marko.Nagode at fs.uni-lj.si
Mon Jul 2 12:38:23 CEST 2012

Dear Sir,

One of the rebmix package users informed me about an error occurring when the rebmix runs from R console on mac:

[cid:image001.png at 01CD584F.37694940]

I assume that the problem is caused by:

Rprintf("%sTime left %2.1f sec", CL, TimeLeft);

in my C code, where:

#ifndef CL
#define CL "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"

As you can see I try to inform the user of the rebmix about the time needed to finish the calculation. Consequently I first clean the line by calling backshlash several times as the exact length of the string is supposed not to be known. Next TileLeft is written. On R console one should, e.g., observe Time left = 0.3 sec.
[cid:image002.png at 01CD584F.37694940]
[cid:image005.jpg at 01CD584F.91DFDB00]

On other platforms my code runs error free. On CRAN checks: rebmix results the status of all checks is OK.

I assume that \b causes troubles. Could you please give me some idea on how to avoid the problem.

Thank you in advance.

Best regards,

Marko Nagode

prof. Marko Nagode, Ph.D.
University of Ljubljana
Faculty of Mechanical Engineering
Aškerčeva 6
1000 Ljubljana
Phone: +386 1 4771 507
Fax: +386 1 4214 074
E-mail: marko.nagode at fs.uni-lj.si

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20120702/ace1f32d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 34486 bytes
Desc: image001.png
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20120702/ace1f32d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 23699 bytes
Desc: image002.png
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20120702/ace1f32d/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 22866 bytes
Desc: image005.jpg
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20120702/ace1f32d/attachment-0001.jpg>

More information about the R-SIG-Mac mailing list