nat.utils: File System Utility Functions for 'NeuroAnatomy Toolbox'

Share:

Utility functions that may be of general interest but are specifically required by the 'NeuroAnatomy Toolbox' ('nat'). Includes functions to provide a basic make style system to update files based on timestamp information, file locking and 'touch' utility. Convenience functions for working with file paths include 'abs2rel', 'split_path' and 'common_path'. Finally there are utility functions for working with 'zip' and 'gzip' files including integrity tests.

Author
Gregory Jefferis
Date of publication
2015-07-04 15:24:37
Maintainer
Gregory Jefferis <jefferis@gmail.com>
License
GPL-3
Version
0.5.1

View on CRAN

Man pages

abs2rel
Remove common part of two paths, leaving relative path
common_path
Find common prefix of two or more (normalised) file paths
file.swap
Swap names of two files (by renaming first to a temporary...
gzip.crc
Extract the CRC (32 bit hash) of a gzip file
is.gzip
Check if a file is a gzip file
makelock
Make and remove (NFS safe) lock files
nat.utils
nat.utils: File System Utility Functions for NeuroAnatomy...
nat.utils-defunct
nat.utils: Defunct functions
ncpus
Return number of cpus (or a default on failure)
RunCmdForNewerInput
Run a command if input files are newer than outputs
split_path
Split file path into individual components (optionally...
touch
Use unix touch utility to change file's timestamp
zipinfo
Return information about a zip archive using system unzip...
zipok
Verify integrity of one or more zip files

Files in this package

nat.utils
nat.utils/tests
nat.utils/tests/testthat.R
nat.utils/tests/testthat
nat.utils/tests/testthat/test-ziputils.r
nat.utils/tests/testthat/test-sysutils.R
nat.utils/tests/testthat/test-gziputils.r
nat.utils/tests/testthat/test-fsutils.r
nat.utils/tests/testthat/testdata
nat.utils/tests/testthat/testdata/hello.gz
nat.utils/tests/testthat/testdata/sample-spaces.zip
nat.utils/tests/testthat/testdata/sample-onefile.zip
nat.utils/tests/testthat/testdata/sample.zip
nat.utils/tests/testthat/test-make.r
nat.utils/NAMESPACE
nat.utils/NEWS
nat.utils/R
nat.utils/R/sysutils.r
nat.utils/R/gziputils.r
nat.utils/R/make.r
nat.utils/R/fsutils.r
nat.utils/R/nat.utils-package.r
nat.utils/R/ziputils.r
nat.utils/R/filelocks.r
nat.utils/README.md
nat.utils/MD5
nat.utils/DESCRIPTION
nat.utils/man
nat.utils/man/gzip.crc.Rd
nat.utils/man/file.swap.Rd
nat.utils/man/ncpus.Rd
nat.utils/man/touch.Rd
nat.utils/man/zipinfo.Rd
nat.utils/man/is.gzip.Rd
nat.utils/man/abs2rel.Rd
nat.utils/man/makelock.Rd
nat.utils/man/RunCmdForNewerInput.Rd
nat.utils/man/common_path.Rd
nat.utils/man/split_path.Rd
nat.utils/man/nat.utils-defunct.Rd
nat.utils/man/zipok.Rd
nat.utils/man/nat.utils.Rd