ARROW-3284: [R][C++] Status code R error
ARROW-3284: [R][C++] Status code R error

Author: Romain Francois <romain@purrple.cat>
Author: Wes McKinney <wesm+git@apache.org>

Closes #2599 from romainfrancois/status-code-r-error and squashes the following commits:

b4b821d02 <Wes McKinney> clang-format
b42891a9b <Romain Francois> Additional R related handling in Status
35195cbd8 <Romain Francois> Adding RError to StatusCode for potential R related errors.

cpcloud/arrow,icexelloss/arrow,tebeka/arrow,kou/arrow,tebeka/arrow,wesm/arrow,wesm/arrow,xhochy/arrow,laurentgo/arrow,laurentgo/arrow,pcmoritz/arrow,xhochy/arrow,pcmoritz/arrow,laurentgo/arrow,renesugar/arrow,kou/arrow,itaiin/arrow,cpcloud/arrow,wesm/arrow,apache/arrow,icexelloss/arrow,cpcloud/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,renesugar/arrow,icexelloss/arrow,kou/arrow,laurentgo/arrow,apache/arrow,xhochy/arrow,cpcloud/arrow,wesm/arrow,wesm/arrow,icexelloss/arrow,xhochy/arrow,pcmoritz/arrow,majetideepak/arrow,pcmoritz/arrow,majetideepak/arrow,cpcloud/arrow,pcmoritz/arrow,renesugar/arrow,icexelloss/arrow,pcmoritz/arrow,apache/arrow,tebeka/arrow,xhochy/arrow,wesm/arrow,itaiin/arrow,laurentgo/arrow,icexelloss/arrow,renesugar/arrow,majetideepak/arrow,apache/arrow,laurentgo/arrow,apache/arrow,icexelloss/arrow,wesm/arrow,itaiin/arrow,pcmoritz/arrow,xhochy/arrow,renesugar/arrow,pcmoritz/arrow,laurentgo/arrow,laurentgo/arrow,majetideepak/arrow,itaiin/arrow,laurentgo/arrow,cpcloud/arrow,majetideepak/arrow,pcmoritz/arrow,xhochy/arrow,icexelloss/arrow,renesugar/arrow,tebeka/arrow,icexelloss/arrow,renesugar/arrow,tebeka/arrow,apache/arrow,pcmoritz/arrow,majetideepak/arrow,tebeka/arrow,itaiin/arrow,majetideepak/arrow,majetideepak/arrow,apache/arrow,kou/arrow,majetideepak/arrow,apache/arrow,tebeka/arrow,xhochy/arrow,cpcloud/arrow,kou/arrow,cpcloud/arrow,renesugar/arrow,apache/arrow,itaiin/arrow,laurentgo/arrow,tebeka/arrow,itaiin/arrow,tebeka/arrow,laurentgo/arrow,apache/arrow,cpcloud/arrow,renesugar/arrow,itaiin/arrow,xhochy/arrow,wesm/arrow,xhochy/arrow,icexelloss/arrow,xhochy/arrow,wesm/arrow,renesugar/arrow,itaiin/arrow,pcmoritz/arrow,wesm/arrow,kou/arrow,xhochy/arrow,apache/arrow,kou/arrow,cpcloud/arrow,wesm/arrow,tebeka/arrow,kou/arrow,renesugar/arrow,kou/arrow,kou/arrow,apache/arrow,pcmoritz/arrow,kou/arrow,cpcloud/arrow,renesugar/arrow,pcmoritz/arrow,itaiin/arrow,pcmoritz/arrow,itaiin/arrow,renesugar/arrow,itaiin/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,majetideepak/arrow,majetideepak/arrow,itaiin/arrow,cpcloud/arrow,wesm/arrow,majetideepak/arrow,renesugar/arrow,apache/arrow,wesm/arrow,cpcloud/arrow,wesm/arrow,pcmoritz/arrow,xhochy/arrow,xhochy/arrow,apache/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,majetideepak/arrow,majetideepak/arrow,icexelloss/arrow,itaiin/arrow,majetideepak/arrow,renesugar/arrow,kou/arrow,kou/arrow,itaiin/arrow,laurentgo/arrow