Git Product home page Git Product logo

textab's Introduction

textab: Create Highly-Customized LaTeX Tables in R

CRAN checks

Created by Thibaut Lamadon and Bradley Setzler

The textab package produces highly-customized LaTeX tables in R.

There are only three functions in this package:

  • TexRow: Form a row in a LaTeX tabular environment.
  • TexSave: Save the tabular as a .tex file, and optionally compile it as a PDF.
  • TexMidrule: Insert a midrule, or list of partial midrules, between rows in a LaTeX tabular environment.

This package builds LaTeX tables in blocks, in the spirit of ggplot2, using the + and / operators for concatenation.

  • plus sign (+): Stack rows vertically (forming multiple rows).
  • slash sign (/): Combine rows side-by-side (forming a wider row).

To install the package from CRAN:

install.packages("textab")

To install the package from Github:

devtools::install_github("setzler/textab")

To use the package after it is installed:

library(textab)

To get started, read the following articles:

textab's People

Contributors

setzler avatar

Stargazers

le Duc Banal avatar Oromion avatar  avatar  avatar

Watchers

 avatar

textab's Issues

Release textab 1.0

First release:

Prepare for release:

  • git pull
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('major')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted ๐ŸŽ‰
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • usethis::use_news_md()
  • git push
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Order of operations

Consider:

aa = TexRow(c(1,2)); bb = TexRow(3); cc = TexRow(4)

This is the desired behavior:

aa + (bb - cc)
% created using textab on Sun Mar 26 09:50:07 2023
\begin{tabular}{rr}
1.000 & 2.000 \
3.000 & 4.000 \
\end{tabular}

However, without parentheses, the + operator has precedence over the - operator:

aa + bb - cc
% created using textab on Sun Mar 26 09:50:12 2023
\begin{tabular}{rrr}
1.000 & 2.000 & 4.000 \
\end{tabular}

How can we override the order of operations so that - has precedence over +?

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.