Following code maybe work:
file.sources = list.files(path = "~/Desktop/NEMo/", pattern=".R$", full.names = TRUE , ignore.case=TRUE)
or just rename the file type to _niche_mcmc.R_
Note: *pattern=".R"**
This parameter is not work in my test environment
Ah, thanks for picking this up. I have been updating the function to improve the modelling of niche evolution. I forgot that I used .R before.... It is corrected now.
R is a case sensitive language.
file.sources = list.files(path = "~/Desktop/NEMo/", pattern="*.R", full.names = T) sapply(file.sources,source,.GlobalEnv)
So, this code can't import _niche_mcmc.r_ file
Following code maybe work:
file.sources = list.files(path = "~/Desktop/NEMo/", pattern=".R$", full.names = TRUE , ignore.case=TRUE)
or just rename the file type to _niche_mcmc.R_ Note: *pattern=".R"** This parameter is not work in my test environment