Load furniture for a given model.

load.furniture(model.name, path, file.name)

Arguments

model.name

the name given to the model used to store log information

path

list of useful paths

file.name

list of useful file.names

Value

a data.frame of furnitures present in the model. If the file furniture.csv does not yet exist, return NULL. Some tries are made on format. First, 'furniture.csv' is supposed to be readable by utils::read.csv2, if not it is supposed to be readable by utils::read.csv. If not, an error is returned. User is asked to manage format on his own. Some tries are made on encoding. First, 'furniture.csv' is supposed to be encoded in UTF-8. If this try makes some error, another try is made in ISO-8859-15. If this second try does not work, an error is returned. User is asked to manage encoding on his own.

Examples

if (FALSE) {
load.furniture("test", update.path(path, init.create.path("dwelling"), "test"), update.file.name(init.file.name(), "test"))
}