Export a pharmpy model object.
export_pharmpy_model.RdPharmpy model objects loaded in R cannot be stored and retrieved currently using native Pharmpy code. This is a (hopefully temporary) wrapper function to export the model and dataset to an RDS file.