
Read technology object(s) from an Excel workbook
Source: R/xlsx-technology.R
read_technology_xlsx.RdInverse of write_technology_xlsx(). Reads the block-structured worksheets
produced by that function and rebuilds class-technology objects, coercing each
mini-table's columns back to the types declared by the class.
Value
A technology object (single sheet), a named list of technology
objects, or a repository (when as_repository = TRUE).
See also
Other technology process:
getVariants(),
newTechnology(),
variantSummary(),
write_technology_xlsx()
Examples
tech <- topia$modules$electricity$R3$ECOA
f <- tempfile(fileext = ".xlsx")
write_technology_xlsx(tech, f)
# a named list of the technologies found in the workbook
back <- read_technology_xlsx(f)
names(back)
#> [1] "ECOA"
identical(back[[1]]@name, tech@name)
#> [1] TRUE