Here is my code that I used to try to connect to the hsapiens dataset:
> mart <- biomaRt::useMart(biomart = "ENSEMBL_MART_ENSEMBL",
+ dataset = "hsapiens_gene_ensembl",
+ host = "www.ensembl.org")
This is the error message that appears in the console:
Error in useDataset(mart = mart, dataset = dataset, verbose = verbose) :
The given dataset:
hsapiens_gene_ensembl , is not valid.
Correct dataset names can be obtained with the listDatasets function.
I am confused as to why I am getting this error because it is saying that this dataset is an invalid dataset but I checked and it is indeed valid.