This paper gives insights into the SAS interface to R which is available since SAS 9.22. The interface is realized as a SAS procedure called PROC IML. Here it is demonstrated how R Code can be submitted from SAS and how SAS data sets are send to R, used for computing and send back to SAS. Questions like “do SAS formats get lost on the way to R” and “how can R graphics be integrated into SAS PDF reports” will be discussed. Also best practice methods for error handling will be introduced.
Dr. Peter Bewerunge, Dipl. Ing. (FH) Biotechnology and Software Engineer at HMS Analytical Software.