Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

cannot use object of class “character” in new(): class “ImportedLandscape” does not extend that class #3

Description

@mariesoret

Hey,
I'm trying to use rangeshiftR for a patch-based simulation with SMS dispersal.
I'm trying to initialize my imported landscape as follow :

`library(RangeShiftR)

dirpath = "AO_EXP/"
patpath = "AO_EXP/Inputs/AO_COREHAB_ID.asc"
cospath = "AO_EXP/Inputs/AO_CF_1_100.asc"
lanpath = "AO_EXP/Inputs/extend.asc"

land <- ImportedLandscape(lanpath,
Resolution = 10,
HabPercent = FALSE,
Nhabitats = 1,
K_or_DensDep = 10,
PatchFile = patpath,
CostsFile = cospath)
`

I don't understand the error I get :

Erreur dans .nextMethod(.Object = .Object, ... = ...) :
cannot use object of class “character” in new(): class “ImportedLandscape” does not extend that class

my session info :
R version 4.1.1 (2021-08-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)
RangeShiftR_1.0.4
Rcpp_1.0.9
devtools_2.4.3
rmarkdown_2.11
Rdpack_2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions