View PDF version of each written piece

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


Load the iemisctext package first

library(iemisctext)



under Unix-based operating systems

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

pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "Connect_the_Dots.pdf", package = "iemisctext")
system2(pdf, args = f)
pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "The-War-Prayer.pdf", package = "iemisctext")
system2(pdf, args = f)
pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "War-Is-A-Racket.pdf", package = "iemisctext")
system2(pdf, args = f)
pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "The-Mask-of-Anarchy.pdf", package = "iemisctext")
system2(pdf, args = f)
pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "Untitled_Us-versus-Them-or-People-Screwing-over-Other-People.pdf", package = "iemisctext")
system2(pdf, args = f)
pdf <- getOption("pdfviewer", default = "")
f <- system.file("texts", "pdf", "Untitled_Climate-Strange.pdf", package = "iemisctext")
system2(pdf, args = f)



under MS Windows operating systems

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

f <- system.file("texts", "pdf", "Connect_the_Dots.pdf", package = "iemisctext")
shell.exec(normalizePath(f))
f <- system.file("texts", "pdf", "The-War-Prayer.pdf", package = "iemisctext")
shell.exec(normalizePath(f))
f <- system.file("texts", "pdf", "War-Is-A-Racket.pdf", package = "iemisctext")
shell.exec(normalizePath(f))
f <- system.file("texts", "pdf", "The-Mask-of-Anarchy.pdf", package = "iemisctext")
shell.exec(normalizePath(f))
f <- system.file("texts", "pdf", "Untitled_Us-versus-Them-or-People-Screwing-over-Other-People.pdf", package = "iemisctext")
shell.exec(normalizePath(f))
f <- system.file("texts", "pdf", "Untitled_Climate-Strange.pdf", package = "iemisctext")
shell.exec(normalizePath(f))



under OS X operating systems

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

f <- system.file("texts", "pdf", "Connect_the_Dots.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
f <- system.file("texts", "pdf", "The-War-Prayer.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
f <- system.file("texts", "pdf", "War-Is-A-Racket.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
f <- system.file("texts", "pdf", "The-Mask-of-Anarchy.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
f <- system.file("texts", "pdf", "Untitled_Us-versus-Them-or-People-Screwing-over-Other-People.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
f <- system.file("texts", "pdf", "Untitled_Climate-Strange.pdf", package = "iemisctext")
system2("open", args = f, wait = FALSE)
LS0tCnRpdGxlOiAiUERGIFZlcnNpb24gb2YgV3JpdHRlbiBQaWVjZXMiCmF1dGhvcjogIklydWNrYSBFbWJyeSIKZGF0ZTogImByIFN5cy5EYXRlKClgIgpvdXRwdXQ6CiAgcm1hcmtkb3duOjpodG1sX2RvY3VtZW50OgogICAgaGlnaGxpZ2h0OiBrYXRlCiAgICB0aGVtZTogcmVhZGFibGUKICAgIGNvZGVfZG93bmxvYWQ6IFRSVUUKdmlnbmV0dGU6ID4KICAlXFZpZ25ldHRlSW5kZXhFbnRyeXtWaWV3aW5nIEVhY2ggV3JpdHRlbiBQaWVjZSBhcyBhIFBERn0KICAlXFZpZ25ldHRlRW5naW5le2tuaXRyOjpybWFya2Rvd259CiAgJVxWaWduZXR0ZUVuY29kaW5ne1VURi04fQotLS0KCjxiciAvPgo8YnIgLz4KCiMgVmlldyBQREYgdmVyc2lvbiBvZiBlYWNoIHdyaXR0ZW4gcGllY2UKCklmIHlvdSB3b3VsZCBsaWtlIHRvIHZpZXcgdGhlIFBERnMsIHRoZW4gdXNlIHRoZSBjb2RlIGJlbG93IHRoYXQgbWF0Y2hlcyB5b3VyIG9wZXJhdGluZyBzeXN0ZW06Cgo8YnIgLz4KCiMgTG9hZCB0aGUgaWVtaXNjdGV4dCBwYWNrYWdlIGZpcnN0CmBgYHtyIGV2YWwgP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