Somebody pointed me to the right spot in the documentation, and kindly and humorously 'suggested' to me to do the following: My Apologies, everybody! I should have read docs a bit better, actually... ...will do better next time! luca
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <> Sent: Monday, August 28, 2006 4:52 PM Subject: Write signed short into a binary file (follow up and conclusion) I've solved my problem using: (purpose: write the signed integer -19 as a two byte integer into a binary file) writeBin(as.integer(-19),myconnection, size=2) There is no need to coerce. Thanks anyway! Luca NanettiUniversity Medical Center Groningen BCN-NeuroImagingCenter A.Deusinglaan 2 9713AW Groningen The Nethterlands l dot nanetti at med dot rug dot nl ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.