It’s been a busy short week, with the Thanksgiving holiday, putting up Christmas decorations, and the time consuming task I like to call my job. But I did start to play with the rlauncher config file. Not much, just in setting the workspace R will be using.
This is the line that defines the default workspace
WORKING_DIRECTORY=C:\PROGRA~1\MICROS~2\MSSQL1~1.MSS\MSSQL\EXTENS~1
Books Online has a note that warns not to change the value. But hey, this is just a CTP, right? Why not test that out? So I changed the value to a new folder, C:\SQL2016\RWorkspace. Afterwards,checking the working directory didn’t give me the result I was expecting.
Image may be NSFW.
Clik here to view.
Not only that, I got a different result each time I ran the script. Each time a new sub-directory was created.
Image may be NSFW.
Clik here to view.
I reset the value of the working directory back to the default. And I’ll leave it as is. If I want to change the working directory, maybe to store functions I can source out later, I’ll change it in my script.
Image may be NSFW.
Clik here to view.
I’m not done with the rlauncher config yet, I’ll have more later.
Reference
Configure and Manage Advanced Analytics Extensions
https://msdn.microsoft.com/en-US/library/mt590869.aspx