Durga Gaddam
Durga Gaddam

Reputation: 355

Error in R while compiling the markdown

I am trying to save a xgboost code in Rmarkdown to knit HTML document. I am getting an error. The code is completely executable in "R".

Fatal error: creation of tmpfile failed -- set TMPDIR suitably?

The error is same when I try to run knit Pdf/word.

Someone please help me.

Thank you

Upvotes: 2

Views: 379

Answers (1)

Andrew J. Rech
Andrew J. Rech

Reputation: 466

It seems the temporary directory cannot be created. Trying making your own temporary directory or setting it to the working directory:

Sys.setenv(TMPDIR = ".")

Upvotes: 1

Related Questions