np: normalizePath shortcut

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_generics_v1.R

Description

Utility function that runs normalizePath. Useful for running on Mac vs. Windows.

Usage

1
  np(path = path, ...)

Arguments

path

The path to run normalizePath on.

...

Additional arguments to normalizePath.

Value

path The path that was normalized.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

normalizePath

Examples

1
2
3
4
5
6
7
8
9
# Get a path
extdata_dir = np(system.file("extdata", package="BioGeoBEARS"))
extdata_dir

path = paste(extdata_dir, "//", "Psychotria_5.2.newick", sep="")
path

path = np(path)
path

Example output

Loading required package: rexpokit
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

The following object is masked from 'package:ape':

    edges

[1] "/usr/lib/R/site-library/BioGeoBEARS/extdata"
[1] "/usr/lib/R/site-library/BioGeoBEARS/extdata//Psychotria_5.2.newick"
[1] "/usr/lib/R/site-library/BioGeoBEARS/extdata/Psychotria_5.2.newick"

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.