#include <SoftwareSerial.h>
Why? You never create an instance.
void loop()
{
if (x==0) {
for (n=1; n<(R1[0]+1); n++) {
Serial.write (R1[n]); }
}
x=1;
}
Unreadable rubbish. Learn to indent your code properly, AND to put the } on its own line.