View PDF version of the tables

If you would like to view the PDF tables, then use the code below that matches your operating system:


under Unix-based operating systems

Source: Show me the pdf already | R-bloggers By Will

pdf <- getOption("pdfviewer", default = "")
f <- system.file("pdf", "Mannings_n_Values.pdf", package = "iemiscdata")
system2(pdf, args = f)



under MS Windows operating systems

Source: Show me the pdf already | R-bloggers By Will

f <- system.file("pdf", "Mannings_n_Values.pdf", package = "iemiscdata")
shell.exec(normalizePath(f))



under OS X operating systems

Source: Opening PDF within R studio using file.show - Stack Overflow – rensa

f <- system.file("pdf", "Mannings_n_Values.pdf", package = "iemiscdata")
system2("open", args = f, wait = FALSE)