R mongolite insert binary data


I would like to store binary data using mongolite in R into mongo DB. With mongosh I was able to use the following sintax: db.MyDb.InsertOne({“BinaryData”:BinData(0, “SGVsbG8gV29ybGQ=”)}). How can I reach the same with mongolite in R, or do you suggest other more convenient ways?