thclarke / MPrESS

GNU General Public License v2.0
0 stars 0 forks source link

Error in lc(tax.val) : could not find function "lc" #1

Open LouiseBThingholm opened 9 months ago

LouiseBThingholm commented 9 months ago

Dear thclarke, I wouidl like to try your new package but I cannot find any vignette? And I cannot get the short code ecample to run as I get this issue: china.power = power.est(china.full, "State", c("Yunnan", "Guangxi Zhuang")); #Use summary() to examine the data loaded summary(china.power) Error in lc(tax.val) : could not find function "lc"

Not sure what lc() is suppose to do so hard to find a fix.

psal591 commented 3 months ago

I have the same problem. In the source code I can find where lc is:

Step one and a ha;f

if (!lc(tax.val) %in% lc(rank_names(in.phylosq))){ cat(paste("Cannot locate ", tax.val, " in in.phyloseq. Using the full OTU table in submitted data\n", sep="")) } else{ in.phyloseq = tax_glom(in.phyloseq, tax.val) }

My understanding is that it should not be an error, but only print a message in the screen. However, "lc" is not defined, so R does not know what to do with it and we get the error.

thclarke, what is the purpose of lc in the code? Can we define it somehow?

Thank you,

Priscila.

emihoe commented 1 month ago

I have the same issue Error in lc(tax.val) : could not find function "lc"

Is there a solution?