You now have until September 15th to submit your use case or success story to the 2022 Dataiku Frontrunner Awards!ENTER YOUR SUBMISSION

writing pdf into folder with R

Scobbyy2k3
Level 3
Level 3
writing pdf into folder with R

HI,

I am trying to write a pdf into a folder in R. Below is the code I have written so far

pdf(venn_diagrams,"ihcdata_visitmapping.pdf")
print(p)
dev.off()

 

Thanks


Operating system used: windows

0 Kudos
1 Reply
JordanB
Dataiker
Dataiker

Hi @Scobbyy2k3,

Thanks for writing in! I recommend referencing the DSS R API. You can get the managed folder id with dkuManagedFolderPath() and then use something like dkuManagedFolderCopyFromLocal() to copy the contents of a local folder to the managed folder. I've included sample code below for reference. You will need to adjust this code depending on where your files and folder are located. 

library(dataiku)
#retrieve folder id
dkuManagedFolderPath('managed_folder')

Please let me know if you have any further questions.

Thanks!

Jordan

 

0 Kudos