As @RW9 said,
There is no change my code from one language to another button.
As @Reeza shared,
Code conversion is not a 1:1 process and requires a programmer who knows both systems. Don't underestimate the amount of work required.
The short answer is, "No, there is no simple way to convert SAS processes to R processes even when they are similar in nature".
Having said that, are you trying to translate training code for building models or are you trying to translate data step code for scoring/manipulating data? Presumably you are looking to R for analytics rather than data preparation. It is very unlikely that you would be able to generate identical results in any modeling situation involving optimization since the optimization algorithms in R and SAS would almost certainly generate slightly different solutions in most cases.
SAS Enterprise Miner can facilitate using R code through the Open Source Integration node, but there is no reason for SAS to export R code. SAS Enterprise Miner generates score code in SAS and it can also generate score code in Java, C, and PMML for certain processes. This code is generated by the modeling nodes rather than being converted.
Hope this helps!
Doug
... View more