BiomaRt error: Error in martCheck I am experiencing an error while using getSequence() in biomaRt.

The code is given below:

library("biomaRt")
ensemblp &lt;- useMart(biomart="plants_mart",host="plants.ensembl.org")
osj = useDataset("osativa_eg_gene", mart = ensemblp)
genes &lt;- read.csv("osj.csv")
osj_id &lt;- genes$ensembl_transcript_id

os_genes &lt;- getSequence(id = osj_id, type = "ensembl_transcript_id", seqType = "peptide", mart = ensemblp)


The error message I am getting is :

Error in martCheck(mart, c("ensembl", "ENSEMBL_MART_ENSEMBL")) :   
This function only works when used with the ensembl BioMart.This
function only works when used with the ENSEMBL_MART_ENSEMBL BioMart.


Did I make any mistake in code? Please help me fix the error. I tried asking this in Bioconductor support, but no one responded yet.
getSequence has only been enabled for the main Ensembl (vertebrates) biomaRt. This is all at the Bioconductor end. You'll need to use a getBM instead, for example:

os_genes &lt;- getBM(attributes =c("ensembl_transcript_id", "peptide"), filters = "ensembl_transcript_id", values = osj_id, mart = osj)