Rstudio on : installing new packages

I’m having trouble installing packages to RStudio on

I would like to install SNPRelate and its dependent package gdsfmt. I tried following the instructions in RStudio to use conda install : conda install -c bioconda bioconductor-gdsfmt but got the following error : Error: unexpected symbol in “conda install”
Not sure what I’m doing wrong here.

I also tried installing the package using biocManager: BiocManager::install("gdsfmt")
but that led to the following error:
/bin/sh: 1: x86_64-conda-linux-gnu-c++: not found
make: *** [/opt/miniconda/lib/R/etc/Makeconf:177: R_CoreArray.o] Error 127
ERROR: compilation failed for package ‘gdsfmt’

  • removing ‘/opt/miniconda/lib/R/library/gdsfmt’

I appreciate any advice on how to install these packages that I need for my analysis.