read.example: read file list

View source: R/basF.R

read.exampleR Documentation

read file list

Description

read.example This function read file list under one package, or sets working directory under package.

Usage

read.example(package, setpath = FALSE)

Arguments

package

package name.

setpath

Whether set working directory under package, FALSE(default).

Value

this returned a path or file list.

Author(s)

Yuanzhen Lin <yzhlinscau@163.com>

References

Yuanzhen Lin. R & ASReml-R Statistics. China Forestry Publishing House. 2016 AFfR website:https://github.com/yzhlinscau/AFfR

See Also

See Also as read.file, fdata

Examples

library(AFEchidna)
# read file list under a package
AFEchidna::read.example(package = "AFEchidna")

# set working directory under a package
AFEchidna::read.example(package = "AFEchidna", setpath = TRUE)
getwd()


yzhlinscau/AAfun0s documentation built on April 18, 2023, 4:11 p.m.