Difficulty using here function for Github

Very new to R studio and

> getwd()
[1] "/Users/Macbook/Documents/GitHub/MERMAID-import/Demo"
> here::here()
[1] "/Users/Macbook/Documents/GitHub/MERMAID-import"
> #list files in demo data
> list.files(
+   path = here("Demo", "demo-data"),
+   pattern = "benthicpit",
+   full.names = TRUE,
+   recursive = FALSE
+ )
Error in here("Demo", "demo-data") : could not find function "here"

You have to either load the here package with library(here) or use here::here("Demo", "demo-data")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.