title: How to check if CUDA GPUs are available in R?
body: <p>I am writing a script that uses <code>xgboost</code> package to train machine learning models in R. The model training can be accelerated if CUDA GPUs are available and the GPU version of the package is installed.</p>
  <p>Is there a function that can check if GPUs are available (preferably without installing additional package other than <code>xgboost</code>)?</p>