huaxia1985 / NEMo

2 stars 0 forks source link

import function problem #2

Open ZMgogo opened 2 years ago

ZMgogo commented 2 years ago

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

huaxia1985 commented 2 years ago

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.