Skip to content

Instantly share code, notes, and snippets.

View pedrokarneiro's full-sized avatar
💼
Contact me via Whatsapp +55 62 98153-2101

Pedro Carneiro Jr. pedrokarneiro

💼
Contact me via Whatsapp +55 62 98153-2101
View GitHub Profile
@pedrokarneiro
pedrokarneiro / App.R
Last active September 13, 2017 18:49
conditionalShowPDF - R and Shiny code to conditionally display a PDF file from a list of PDFs given in a selectInput.
#########################################################################
# Conditionaly displays a PDF file from a list of PDFs given
# in a selectInput.
#
# Author: Pedro Carneiro Junior
# This version: September-10-2017, Goiania-GO-Brazil
#
# * Will not work in browsers that don't support iframe;
# * PDF files pdf_file_1.pdf to pdf_file_n.pdf must be placed under the "www" subdirectory;
# * For better performance, use "Open in browser" button.