Coder Social home page Coder Social logo

pestrpra's Introduction

pestrPRA

RMarkdown extension for bookdown to create PRA reports templates.

Installation

You can install and use pestrPRA development version from GitHub as follows:

devtools::install_github("mczyzj/pestrPRA")

Overview

Current, developmental versions supports template for:

  • Express Pest Risk Analysis (see EPPO) in English;
  • Express Pest Risk Analysis for Invasive Plants in English;
  • polish version that combines elements from both templates (this approach is currently adopted for PRA in Poland, examples of polish PRA that were created without this package can be seen on plant quarantine site).

Why?

It is extremely hard to maintain nice looking, well formatted documents when you need to work with dozen other assessors / scientists when each of them is using different OS, document editor, etc. After few rounds your nice template in *.doc format looks like garbage and trying to make it work take ages. Working in LaTeX is not an option, since most of your coworkers find it to complicated to use. The one solution is to use RMarkdown, that allows easy document edition. The only problem is to begin with well formatted template -- which is not an easy task. Hopefully, now complete template for both english EPPO PRA as well as polish PRA template is available. Moreover all of templates that are currently in pestrPRA package converge to pdf and html format from one set of *.rmd files.

Usage

This package was tested and proven to correctly generate *.pdf files with Ubuntu 16.10 with TeX Live 2018 and 18.04 with TeX Live 2017. I cannot guarantee at the moment that ther is a way to make *.pdf under Windows, nevertheless *.html output should work.

You can create new folder with all the necessary files using RStudio menu > File > New file > RMarkdown > Template

or by using rmarkdown::draft() command, e.g.

    rmarkdown::draft("Hzea.Rmd", template = "eppo_pest_pdf", package = "pestrPRA")

Tables

Most important tables, that one should fill are stored in separate *.csv files. Their should be filled manualy, however some information, e.g.:

  • hosts
  • taxonomy
  • preferred name, synonyms and common names
  • distribution
  • categorization

can be downloaded automaticaly from EPPO data services by using pestr package.

pestrpra's People

Contributors

mczyzj avatar

Stargazers

Marina Vabistsevits avatar Huiyan Wan avatar Duy Tran avatar

Watchers

James Cloos avatar  avatar

pestrpra's Issues

proper working directory

After installation, creating new rmarkdown file results in creating new subfolder where all the files are copied but wd is set to main folder. Also the index file is renamed with subfolder name.

Layout and graphics

This templates needs serious help from someone who understands colors, ux, graphic design, usability etc.

site render does not work

Site render does not work neither in main nor in subfolder. Bookdown render site works only with PDF.

css

HTML version is not formatted even the css file exists

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.