This is a test version of Biostars. For the public version, visit https://www.biostars.org.
problem creating PDF file in R(guitar package)

Hi, I am trying to run Guitar on R, and I got to the part where the pdf with the imagws is supposed to be created, but I get an error msg saying that

"Error in pdf(file=f1, width=8, height-4): cannot open file file.pdf

any ideas what I'm doing wrong?

r; guitar

I've no idea what you are doing or what this package is doing but the first thing that comes to my mind is: "do you have write permissions in your current directory?"

yes, checked that :)

proper syntax to create a PDF in R would be

pdf("file.pdf", width=8, height=4)
# plot command
dev.off()

In your case, your syntax is wrong at height-4 also did you create an object f1 where you filename file.pdf is stored?

BTW, this is purely not a Bioinformatics question.

0 answers

No answers yet.

Log in to answer this question.