Giter Club home page Giter Club logo

rticles's Introduction

Rticles: template for technical documents using bookdown

Features

  • Thesis and articles template
  • Export word and html document
  • Word improved template
  • Bibliography citation
  • R workflow for data analysis
  • Scientific graphic quality

Example: https://flavjack.github.io/rticles/

Softwars to install

It is recommended install and create an account if is needed for the following apps, all are free and can be complemented with reproducible research.

How to use the template

Use the template or clone the repository

or

  • You can clone the "rticles" repository using the terminal in Rstudio, for windows user using bash (install Git)
bash
prj="project_name"
info="project info"
gituser="Flavjack"
repo="https://github.com/Flavjack/rticles"
cd
mkdir git
cd git
git clone $repo.git $prj
cd $prj
mv 'rticles.Rproj' $prj.Rproj
curl -u $gituser https://api.github.com/user/repos -d "{\"name\":\"$prj\", \"description\": \"$info\", \"private\": \"true\"}"
git remote rm origin
git commit -m "starting rticles"
git remote add origin https://github.com/$gituser/$prj.git
git push -u origin master
open $prj.Rproj
open .

Document Setup

  1. Run the first chunk in the "index.Rmd" called "setup" and all the packages will be installed automatically.

  2. If all packages are installed correctly shoul be appear the "Build" button in the Rstudio IDE (Integrated Development Environment).

  3. Play the "Build" button and wait until compile the document and if all is okay pop-up window will be appeare with the html version of the document.

  4. You can modify the document changing the text and code in the "index.Rmd" file.

  5. Now you are ready to go and produce your first document!

Folders and files

Type Name Removable Description
folder cnfg NO Contains all document settings.
file index.Rmd NO File that produce the article (code/figures/tables).
file rticle.Rproj NO Rename the file according your repository name.
file .gitignore NO System options.
file _bookdown.yml YES Options to compile the document.
file _output.yml YES html options for the web page.
file README.rmd YES It is the repository description!
folder files YES Images and files that are included in the document.
folder docs YES Files for deploy the web page using github pages).

About the docuent

The document is building with Lorem Ipsum text, and the dataset, examples and tables used are from GerminaR package.

Dataset

The dataset is a germination data example* with a completely randomized design with four replications per treatment under laboratory conditions. The first factor corresponds to five levels of sodium chloride (NaCl) (0, 0.5, 1.0, 1.5 and 2 MPa), and the second factor corresponds to four levels of temperature (25°C, 30°C, 35°C and 40°C).

Source: https://docs.google.com/spreadsheets/d/1QziIXGOwb8cl3GaARJq6Ez6aU7vND_UHKJnFcAKx0VI/edit#gid=137089581

*Lozano-Isla, Flavio, Omar E. Benites-Alfaro, and Marcelo F. Pompelli, 'GerminaR: An R Package for Germination Analysis with the Interactive Web Application "GerminaQuant for R"', Ecological Research, 34.2 (2019), 339--46 https://doi.org/10.1111/1440-1703.1275

Include another Rmd file

{r chunk_name, child = 'file.Rmd'}

Include pdf

<embed src="files/file_name.pdf" width="100%" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">

Include video or slides

<iframe width="100%" height="450" src="https://www.youtube.com/embed/video_id" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Git useful codes

# Import changes from origen
git pull

# Push changes to origen
git add .
git commit -m "message"
git push 

# re-write local files from origen
git fetch --all
git reset --hard origin/master
git pull origin master

# Force push to origen
git push -f origin master

# Undoing Multiple Commits
git reset --hard <commit>

rticles's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.