Save R model as rds to managed folder
fmonari
Registered Posts: 18 ✭✭✭✭
Hi,
I would like to save a trained R model as RDS file to a managed DSS folder connected to an S3 bucket, but I cannot find any working examples for the case. Can anyone help me with that?
Regards,
Filippo
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi,
You may find this post useful :
https://community.dataiku.com/t5/Using-Dataiku/dkuManagedFolderUploadPath-Usage-R-Recipe/m-p/10022
You can use dkuManagedFolderUploadPath
Sample from the previous post :
save(rf_fit, file= "model.RData") connection <- file("model.RData, "rb") dkuManagedFolderUploadPath("model_r", "model.RData", connection) close(connection)
Let us know if you have any issues.