Announcing the winners & finalists of the Dataiku Frontrunner Awards 2021! Read their inspiring stories

Save R model as rds to managed folder

fmonari
Level 2
Save R model as rds to managed folder

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

0 Kudos
1 Reply
AlexT
Dataiker
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. 

0 Kudos
A banner prompting to get Dataiku DSS