Skip to content

Way to specify version of R on HPC with SSH connector? #275

Answered by mschubert
Aariq asked this question in Q&A
Discussion options

You must be logged in to vote

You can provide your own SSH template to specify which version of R to use, or to load a module before calling R (use && to chain them together):

ssh -o "ExitOnForwardFailure yes" -f \
    -R {{ ctl_port }}:localhost:{{ local_port }} \
    -R {{ job_port }}:localhost:{{ fwd_port }} \
    {{ ssh_host }} \
    "module load R/4.0 && R --no-save --no-restore -e \
        'clustermq:::ssh_proxy(ctl={{ ctl_port }}, job={{ job_port }})' \
        > {{ ssh_log | /dev/null }} 2>&1"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aariq
Comment options

@mschubert
Comment options

@Aariq
Comment options

Answer selected by Aariq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants