How to find and connect to an R session using ssh connection? #8070
-
Hi, I am using Positron (version info below) to connect via ssh to my institute's Linux-based HPC. On this cluster, R is only available as a loadable module. So when first SSH'ing to the login node, there are no R sessions registered with Positron. Even after loading a version of R with Is there a way to make Positron find the now-loaded R session? Any suggestions?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello @mattwarkentin, Thank you for using Positron. Have you tried loading R in a terminal before launching Positron from that same terminal? Also, is R available at any path such that it could be configured for custom discovery?: Or could it be symlinked to a specific path for this same purpose? |
Beta Was this translation helpful? Give feedback.
-
And some additional notes from a dev who I have been chatting with:
|
Beta Was this translation helpful? Give feedback.
Okay I started with the simplest solution first and it seemed to work. I added the
module load R/4.2.0
to my.bash_profile
on the HPC so that the R binary would be loaded and available for the connecting session when using Positron Remote SSH. This, along with adding the path for custom R binary discovery seems to work.Thanks for your help, @testlabauto.
So, to summarize for whoever stumbles upon this thread who might be facing the same challenge (i.e., make sure Positron is able to find and load R on an HPC where R must be loaded as a module):
.bash_profile
)