pathological v0.1-1

0

Monthly downloads

0th

Percentile

by Richard Cotton

Path Manipulation Utilities

Utilities for paths, files and directories.

Readme

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Is the package on CRAN? SemaphoreCI Build Status AppVeyor Build Status

pathological

R package of utilities for handling paths, files and directories

Installation

To install, you first need the devtools package.

install.packages("devtools")

Then you can install the pathological package using

library(devtools)
install_github("richierocks/pathological")

Decomposing paths

decompose_path splits a path into a directory name, file name (without extension), and a file extension. recompose_path reverses the effects of this function.

get_extension, strip_extension, and replace_extension allow manipulation of file extensions. They are smart enough to deal with double extensions like tar.gz.

On Windows, get_drive returns the drive name of the path.

Copying directories

copy_dir copies the contents of a directory.

Standardizing paths

standardize_path (and standardise_path, for British English fans) is a wrapper to base::normalizePath that standardizes the form of a path, to make them more easily comparable. You can choose whether you want back or forward slashes, and the inputs paths are given as names.

r_home, temp_dir, temp_file, system_file, and sys_which provide standardized versions of the similarly named base R functions.

Other utilities

os_path returns the operating system PATH environment variable as a character vector of stanardized paths.

On Windows, cygwinify_path makes paths suitable for use with cygwin.

Functions in pathological

Name Description
get_libraries Get the libraries on your machine
os_path The OS path
parent_dir Get the parent dir
cygwinify_path Make a path suitable for cygwin
decompose_path Split a path into its components
create_dirs Create or remove files and directories
is_windows_drive Is the path a Windows drive?
copy_dir Copy the contents of a directory
get_windows_drive On Windows, return the drive of the path
temp_dir Return paths to files or dirs within the temp dir
split_path Split a path into directory components
r_environ Get the location of the R profile/environ
standardize_path Standardize paths
pathological pathological: utilities for paths, files and directories.
r_home The R home directory
rstudio_project_dir Get the RStudio project directory
sys_which Find paths to executables
system_file Find a file in a package
choose_dir Choose files interactively
No Results!

Last month downloads

Details

Type Package
Date 2016-09-05
URL https://github.com/richierocks/pathological
BugReports https://github.com/richierocks/pathological/issues
License Unlimited
LazyLoad yes
Acknowledgments Development of this package was partially funded by the Proteomics Core at Weill Cornell Medical College in Qatar . The Core is supported by 'Biomedical Research Program' funds, a program funded by Qatar Foundation.
RoxygenNote 5.0.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2016-09-05 08:11:14 UTC; rjc2003
Repository CRAN
Date/Publication 2016-09-05 15:54:56

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/pathological)](http://www.rdocumentation.org/packages/pathological)