Skip to content

vubiostat/knitr.tmbundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextMate Bundle for knitr noweb files

Installation

Put this bundle in your TextMate bundle directory:

# For Textmate 2:
mkdir -p ~/Library/Application\ Support/Avian/Bundles/
cd ~/Library/Application\ Support/Avian/Bundles/
git clone https://github.com/fonnesbeck/knitr.tmbundle.git

Commands

  • Knit, Typeset & View
    • This is the main command. It will knit the R noweb file (Rnw, rnw), produce the tex file, then the pdf file and finally open it in the viewer you specified (edit the command to choose your favorite viewer).
  • Knit in R
    • This command knits the file in R creating the tex file.
  • View (PDF)
    • This command opens the PDF in the specified viewer. It is useful if you are using the Knit in R command.
  • Insert R Code Chunk
    • Inserts an R code chunk into the file. The chunk will have no options defined.
  • Change Block Parameters
    • Changes the parameters of the R code chunk among a few options provided.
  • Fix Code Block Indent
    • As the name suggests, it fixes the indentation of an R code chunk.
  • Select Previous Code Block
    • Selects the previous code block in case that you then want to evaluate it in R using the R TextMate bundle.
  • setwd in R
    • Sets the current working directory in R using the setwd() R function.

For R markdown files (Rmd, rmd) you might be interested in the Redcarpet Markdown TextMate bundle which bridges GitHub flavored markdown and R code using knitrBootstrap or knitr.

About

TextMate support for knitr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 97.4%
  • Python 2.6%