MyNixOS website logo
Description

Wrapper for 'Visidata', an Interactive Multitool for Tabular Data.

Open any data frame with 'visidata', a terminal-based spreadsheet application <https://www.visidata.org>.

rvisidata

The goal of rvisidata is to combine the power of Visidata, "A Swiss Army Chainsaw for Data", with R.

VisiData is an interactive multitool for tabular data. It combines the clarity of a spreadsheet, the efficiency of the terminal, and the power of Python, into a lightweight utility which can handle millions of rows with ease.

Installation

Visidata

You need to have Visidata installed. Please follow the official installation instructions provided here.

To verify visidata is installed correctly, vd --version should print out the installed version.

Package

rvisidata can be installed with devtools from the official GitHub repo:

devtools::install_github('paulklemm/rvisidata')

Example

vd(iris)

Options

This package supports integration with tmux.

The default behavior is to open vd in a vertical pane above the current pane, if R is running in a tmux session.

To disable this, set:

options(rvisidata.tmux = FALSE)

Advanced

To customize the way tmux sets up this workspace (For example, opening vd in a new window rather than pane), you may supply your own shell script that invokes vd on your dataset.

Set:

options(rvisidata.tmux = "path/to/your/script")

Your script should take one argument, the filename to be opened.

For example, the following will open your dataframe in a vertical split above the R console window, and return focus back to R:

#!/bin/bash

filename=$1

tmux split-window -vb -p 70 "vd $filename" \; \
  select-pane -l

How it Works

Internally, rvisidata writes the data frame as a csv file to a temporary folder and then loads it with visidata. Be therefore careful with very large data frames, because the writing process can take a while. It will delete the temporary file after the visidata session is closed.

I do not claim that this implementation is efficient or elegant. But it works. Suggestions for making it faster are very welcome.

Limitations

This tool opens the data frame and discards any changes you make for two reasons: (1) you should do your data manipulation in R to have a reproducible analysis workflow and (2) it is easier to implement this way 😇.

Credits

Visidata is designed and developed by Saul Pwanson (official GitHub repository).

Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows