MyNixOS website logo
Description

Effective File Navigation from the R Console.

Functions for printing the contents of a folder as columns in a ragged-bottom data.frame and for viewing the details (size, time created, time modified, etc.) of a folder's top level contents.

files

  • Navigating through files and directories from the R console with the default functions can be a cumbersome, clumsy, and cockeyed process. The aim of files is to ease that process and provide a file mapping system that exceeds the informativeness of the beloved point and click interface that we have come to depend on and accept as 'good enough.'

Getting Started

# Install Github version:
devtools::install_github("gitronald/files")

lf - List Files

  • Retrieves your working directory or a directory of your choice and displays it's top-level contents, as well as the contents of each top-level folder within it, as columns in a ragged-bottom data.frame
> lf()
C:/Users/rer/Documents/Rprojects/dtables 

            dtables      data data-raw              man                    R
1        .gitignore iris2.rda  iris2.R      cor_test.Rd           cor_test.R
2     .Rbuildignore                      create_list.Rd        create_list.R
3            .RData                          dfactor.Rd data-documentation.R
4         .Rhistory                              dft.Rd            dfactor.R
5       .travis.yml                         dnumeric.Rd                dft.R
6  cran-comments.md                           dtable.Rd           dnumeric.R
7       DESCRIPTION                        dvariable.Rd             dtable.R
8     dtables.Rproj                    factor_length.Rd          dvariable.R
9         NAMESPACE                            iris2.Rd       write_object.R
10          NEWS.md                     write_object.Rd                     
11        README.md 
  • Compare to Windows point and click view of the same directory:

df - Describe Files

  • View the details (size, time created, time modified, etc.) of a folder's top level contents.
> df()
                  size isdir mode               mtime               ctime               atime exe
.git                 0  TRUE  777 2016-07-26 17:35:15 2016-06-29 09:52:24 2016-07-26 17:35:15  no
.gitignore          38 FALSE  666 2016-02-10 19:37:48 2016-06-29 09:52:24 2016-06-29 09:52:24  no
.Rbuildignore       94 FALSE  666 2016-05-30 23:26:15 2016-06-29 09:52:24 2016-06-29 09:52:24  no
.RData            9962 FALSE  666 2015-12-24 18:31:14 2016-06-29 09:52:24 2016-06-29 09:52:24  no
.Rhistory        15224 FALSE  666 2016-07-23 09:16:29 2016-06-29 09:52:24 2016-06-29 09:52:24  no
.Rproj.user          0  TRUE  777 2016-06-29 16:15:59 2016-06-29 09:52:29 2016-06-29 16:15:59  no
.travis.yml         30 FALSE  666 2016-05-30 23:26:15 2016-06-29 09:52:24 2016-06-29 09:52:24  no
cran-comments.md   274 FALSE  666 2016-07-07 12:18:55 2016-06-29 09:52:24 2016-07-07 12:18:55  no
data                 0  TRUE  777 2016-06-29 09:52:29 2016-06-29 09:52:29 2016-06-29 09:52:29  no
data-raw             0  TRUE  777 2016-07-26 17:34:51 2016-06-29 09:52:29 2016-07-26 17:34:51  no
DESCRIPTION        470 FALSE  666 2016-07-07 12:18:55 2016-06-29 09:52:24 2016-07-07 12:18:55  no
dtables.Rproj      407 FALSE  666 2016-02-10 19:37:48 2016-06-29 09:52:24 2016-06-29 09:52:24  no
man                  0  TRUE  777 2016-07-22 18:52:59 2016-06-29 09:52:29 2016-07-22 18:52:59  no
NAMESPACE          345 FALSE  666 2016-07-22 18:53:28 2016-06-29 09:52:24 2016-07-07 12:45:49  no
NEWS.md            567 FALSE  666 2016-07-26 17:30:45 2016-06-29 09:52:24 2016-07-26 17:30:45  no
R                    0  TRUE  777 2016-07-22 18:49:59 2016-06-29 09:52:29 2016-07-22 18:49:59  no
README.md         7319 FALSE  666 2016-07-22 17:59:27 2016-06-29 09:52:24 2016-07-10 23:42:32  no
Metadata

Version

0.0.1

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