MicrobiomeStat functions not showing up after installation in R #64
-
Hi again Chen, thanks for the recommendation to use MicrobiomeStat! I've run into some trouble getting the package loaded however; I'm not seeing any of the mStat_ functions. The only functions from MicrobiomeStat that R is showing me are linda, linda.plot, and linda.wald.test. The package version is 1.2, I'm up to date on R, and I installed the various dependencies. I tried installing from GitHub instead of CRAN, but I get this error message:
I've tried on two computers now and gotten the same result. Any suggestions? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Dear Niall, Thank you for your patience. I've reviewed the dependencies for MicrobiomeStat, and I'd like to provide you with a more detailed installation process to ensure all necessary components are in place. Please follow these steps:
If you still encounter issues after following these steps, please provide:
This information will help us troubleshoot any persistent problems more effectively. Don't hesitate to reach out if you need further assistance or clarification on any of these steps. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Chen,
That got it, thanks very much!!
…-Niall
On Tue, Sep 24, 2024 at 9:17 PM Caffery Yang ***@***.***> wrote:
Dear Niall,
Thank you for your patience. I've reviewed the dependencies for
MicrobiomeStat, and I'd like to provide you with a more detailed
installation process to ensure all necessary components are in place.
Please follow these steps:
1.
First, ensure you have R version 3.5.0 or newer installed. You can
check your R version by running:
R.version$version.string
2.
Install and load the pacman package, which we'll use to streamline the
installation of other packages:
if (!require("pacman")) install.packages("pacman")
library(pacman)
3.
Install the required and suggested dependencies:
p_load(rlang, tibble, ggplot2, matrixStats, lmerTest, foreach, modeest, vegan, dplyr, pheatmap, tidyr, ggh4x, ape, GUniFrac, scales, stringr, rmarkdown, knitr, pander, tinytex, ggrepel, parallel, ggprism, aplot, yaml, biomformat, Biostrings, ggtree, ggtreeExtra)
Note: Some of these packages (like Biostrings) are from Bioconductor.
If you encounter any issues, you may need to install them separately using:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")BiocManager::install(c("Biostrings", "biomformat"))
4.
Now, install MicrobiomeStat from GitHub:
devtools::install_github("cafferychen777/MicrobiomeStat")
5.
If the GitHub installation fails, try the manual installation method:
- Download the ZIP file from
https://github.com/cafferychen777/MicrobiomeStat
- Unzip the file
- Install from the local source:
install.packages("path/to/unzipped/MicrobiomeStat", repos = NULL, type = "source")
(Replace "path/to/unzipped/MicrobiomeStat" with the actual path)
6.
After installation, load the package and verify the functions are
available:
library(MicrobiomeStat)
ls("package:MicrobiomeStat")
7.
If you don't see the mStat_ functions, restart your R session and try
loading the package again.
If you still encounter issues after following these steps, please provide:
- The output of sessionInfo()
- Any error messages you receive
- Your operating system details
This information will help us troubleshoot any persistent problems more
effectively.
Don't hesitate to reach out if you need further assistance or
clarification on any of these steps.
Best regards,
Chen Yang
—
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARY3AF5GAP4RZLIXWR66AF3ZYI2NNAVCNFSM6AAAAABOZMGXSWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZUGYZDEOA>
.
You are receiving this because you authored the thread.Message ID:
<cafferychen777/MicrobiomeStat/repo-discussions/64/comments/10746228@
github.com>
|
Beta Was this translation helpful? Give feedback.
Dear Niall,
Thank you for your patience. I've reviewed the dependencies for MicrobiomeStat, and I'd like to provide you with a more detailed installation process to ensure all necessary components are in place. Please follow these steps:
First, ensure you have R version 3.5.0 or newer installed. You can check your R version by running:
Install and load the pacman package, which we'll use to streamline the installation of other packages:
Install the required and suggested dependencies: