MB-8327: improve R script formatting

Change-Id: Ib7c3e3abaa7b337d328cf2321468062168a69f6c
Reviewed-on: http://review.couchbase.org/26453
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>