read_nl_from_parts: Make a neuronlist object from two separate files

View source: R/extdata.R

read_nl_from_partsR Documentation

Make a neuronlist object from two separate files

Description

Make a neuronlist object from two separate files

Usage

read_nl_from_parts(datapath, dfpath = NULL, package = NULL, ...)

Arguments

datapath

Path to the data object

dfpath

Path to the data.frame object (constructed from datapath when NULL, see details)

package

Character vector naming a package whose extdata directory will be sought (with find_extdata) and prepended to the two input paths.

...

Additional arguments passd to find_extdata

Details

It is expected that you will use this in an R source file within the data folder of a package. See Examples for more information.

If dfpath is missing, it will be inferred from datapath according to the following pattern:

  • myblob.rda main data file

  • myblob.df.rda metdata file

Value

a neuronlist object

See Also

Other extdata: find_extdata(), save_nl_in_parts()

Examples

## Not run: 
# you could use the following in a file
# data/make_data.R
delayedAssign('pns', read_nl_from_parts('pns.rds', package='testlazyneuronlist'))
# based on objects created by
save_nl_in_parts(pns)
# which would make:
# - inst/extdata/pns.rds
# - inst/extdata/pns.df.rds

## End(Not run)

nat.utils documentation built on June 7, 2023, 6:30 p.m.