Altair SLC running r scripts inside an SLC data step
Calling R within a slc datastep and computing the area of circles and exporting and slc datastep.
Too long to post, see github
https://github.com/rogerjdeangelis/altair-slc-running-r-scripts-inside-a-slc-datastep
Drop-down macro on the end of this message and in
https://github.com/rogerjdeangelis/utl-macros-used-in-many-of-rogerjdeangelis-repositories
SOAPBOX ON
Note: This solves some shortcomings of the slc proc r and proc python.
1 proc r and proc python cannot be called from a macro.
2 proc r and proc python cannot resolve macro variables.
3 Unfortunately, this makes it impossible to call a macro that contains 'proc r'
and create an SLC dataset.
You can output an R dataframe to a feather file and use hard coded 'proc r'
inputs and outputs to create an slc dataset. You can't even resolve
macro variables in the hardcoded 'proc r'. You can use a datastep with 'call execute' to create
'proc r code' with inputs and outputs, but this is really a kludge.
4 It seems that dosubl is faster in the SLC than SAS?
SOAPBOX OFF