writing pdf into folder with R

Scobbyy2k3
Scobbyy2k3 Partner, Registered Posts: 26 Partner

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

Tagged:

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 297 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 iddkuManagedFolderPath('managed_folder')
    path = '/path/to/dir'dkuManagedFolderCopyFromLocal('folder_id', path)

    Please let me know if you have any further questions.

    Thanks!

    Jordan

Setup Info
    Tags
      Help me…