rstudio/rstudioapi

Add example of using launcherContainer with runAsUserId, runAsGroupId

Opened this issue · 4 comments

Should include an example showing you have to include "L" on the end of the userid and/or groupid or an error is thrown.

container = launcherContainer(image='my-container', runAsUserId = 1005L, runAsGroupId = 1005L)

Should RStudio coerce these values to integers (so that both regular floats and integers can be accepted)?

Should RStudio coerce these values to integers (so that both regular floats and integers can be accepted)?

Probably, yes. I think this is a regression in RStudio 1.3, maybe due to the JSON framework changes, but haven't confirmed that yet.

@gtritchie, I made a change here to support numeric values:

4ef16ec

Do you think it's worth doing something similar on the RSP side as well (coerce numeric to integer as appropriate)?

Do you think it's worth doing something similar on the RSP side as well (coerce numeric to integer as appropriate)?

@kevinushey Probably not necessary (though wouldn't hurt); we don't officially support using the internal APIs to get at this, only this rstudioapi.

Thanks for making the tweak to the API, though!