Skip to content

Issue when importing some data sets from ClimMob #13

@lilyclements

Description

@lilyclements

Good afternoon, I've been looking at importing different data sets from ClimMobTools into R.

I'm using a key which I've been told is for open use: "d39a3c66-5822-4930-a9d4-50e7da041e77"
And trying to import the straw2023 project:

climmob_dataframe <- ClimMobTools::getDataCM(key=read.table("C:/Users/lclem/Downloads/tricot_key_2.txt", quote="\"", comment.char="") [ 1,],
                                             project="straw2023",
                                             userowner="gosset",
                                             server="climmob3",
                                             pivot.wider=FALSE)

The error seems to be occurring in the ClimMobTools::getDataCM function in the line:

cmdata = as.data.frame(x = cmdata, ...)

where it says:

Error in names(lonlat) <- newname :
'names' attribute [4] must be the same length as the vector [1]

Note this code words if I do project = "breadwheat"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions