As far as I know, activating GPU in Python should be done by this code
## choose GPU=0 os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0"
But I don't know about R and I haven't found it.
Is there anybody who knows about that?
Thanks in advance