rstudio / rstudioapi

Safely access RStudio's API (when available)
http://rstudio.github.io/rstudioapi
Other
165 stars 35 forks source link

Feature Request #270

Closed hermanndallinger closed 1 year ago

hermanndallinger commented 1 year ago

Hi,

I am running Rstudio on a Linux machine with a Hybrid processor core, meaning I have a two performance cores with two threads each, and 8 somewhat slower cores i7-1255U × 12. I managed to move the Rsession to one of the performance cores using taskset -pc 0 pid, however, I do have to manually look up the pid each time and of course it changes. Is there a way to extract the session pid using rstudioapi or do you think it would be possible to implement the core switching feature?

Best Hermann

lpiep commented 1 year ago

Hi Hermann, would base R's Sys.getpid solve your problem?

hermanndallinger commented 1 year ago

Hi Hermann, would base R's Sys.getpid solve your problem?

Thanks a ton, that's all I need. Seems like I was looking at the wrong place. Best Hermann