I tried to do what you said, but it didn't work properly.
Changing the folder in the UI Dropdown menu and changing the ini file value showed the same results.
I think there was an internal problem calling the r function.