I am trying to create a pdf inside a folder with a special character and I have an error and I have no idea why. I can create the folder with the special character as well as write tables inside the folder (using write.table) but I can not create pdf files. Someone has an idea what can I do to solve this problem?
library(ggplot)
> print(output_folder)
"/Users/Name/Documents/Imperial_Airlines_Flight_201%2F8"
> file_name <- paste(output_folder,"/","test.pdf", sep="")
pdf(file_name,width = 20, height=10)
qplot(gear, mpg, data=mtcars, geom=c("boxplot", "jitter"),
fill=gear, main="Mileage by Gear Number",
xlab="", ylab="Miles per Gallon")
dev.off()
I can not modify the name of the folder.
Thanks a lot for any help.