🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How do I get started with PROC R on a MAC?

Download and install R on the MAC. Version 2.1 onwards - please use the latest.

If you are using the Altair Analytics Workbench you may like to try setting the R_HOME environmental variable in the server->properties->launch options by adding a 'New' variable. Typically for a MAC this would be set to something like /library/Frameworks/R.framework/Resources if R has been installed as a typical Mac application.

You might like to test your setup using a program of the form:

%put R_HOME = %sysget(R_HOME);
%put HOME = %sysget(HOME);

/* Return the version of R */
PROC R;
submit;
R.version
endsubmit;
run;

just to check everything is set correctly inside your code. If R_HOME is not set you should be able to add the line

options SET=R_HOME "/library/Frameworks/R.framework/Resources";

at the top of your source code and re-try.

Find more posts tagged with

Comments

No comments on this post.