Comments (6)
Hi!
I'd try and install using the following function, which I've tested on multiple OS and R environments
# To install dependencies
install_dependencies <- function () {
dependencies <- c("xcms", "MSnbase", "faahKO", "igraph", "doParallel", "foreach", "ggplot2", "viridis", "gridExtra")
installed <- installed.packages()
to_install <- subset(dependencies, !(dependencies %in% installed[, "Package"]))
if (length(to_install) != 0) {
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
message("Installing packages: ", to_install, " ...")
BiocManager::install(to_install)
} else {
message("All dependencies are already installed.")
}
}
install_dependencies()
# To install development version
devtools::install_github("lauzikaite/massflowR", dependencies = FALSE)
Let me know if you encounter issues while installing it in this way.
Thanks,
Elze
from massflowr.
Hi Elze,
I could not install and I found this error
install_dependencies <- function () {
- dependencies <- c("xcms", "MSnbase", "faahKO", "igraph", "doParallel", "foreach", "ggplot2", "viridis", "gridExtra")
- installed <- installed.packages()
- to_install <- subset(dependencies, !(dependencies %in% installed[, "Package"]))
- if (length(to_install) != 0) {
-
if (!requireNamespace("BiocManager", quietly = TRUE)) {
-
install.packages("BiocManager")
-
}
-
message("Installing packages: ", to_install, " ...")
-
BiocManager::install(to_install)
- } else {
-
message("All dependencies are already installed.")
- }
- }
install_dependencies()
All dependencies are already installed.To install dependencies
install_dependencies <- function () {
- dependencies <- c("xcms", "MSnbase", "faahKO", "igraph", "doParallel", "foreach", "ggplot2", "viridis", "gridExtra")
- installed <- installed.packages()
- to_install <- subset(dependencies, !(dependencies %in% installed[, "massFlowR"]))
- if (length(to_install) != 0) {
-
if (!requireNamespace("BiocManager", quietly = TRUE)) {
-
install.packages("BiocManager")
-
}
-
message("Installing packages: ", to_install, " ...")
-
BiocManager::install(to_install)
- } else {
-
message("All dependencies are already installed.")
- }
- }
To install dependencies
install_dependencies <- function () {
- dependencies <- c("xcms", "MSnbase", "faahKO", "igraph", "doParallel", "foreach", "ggplot2", "viridis", "gridExtra")
- installed <- installed.packages(massFlowR)
- to_install <- subset(dependencies, !(dependencies %in% installed[, "massFlowR"]))
- if (length(to_install) != 0) {
-
if (!requireNamespace("BiocManager", quietly = TRUE)) {
-
install.packages("BiocManager")
-
}
-
message("Installing packages: ", to_install, "massFlowR")
-
BiocManager::install(to_install)
- } else {
-
message("All dependencies are already installed.")
- }
- }
install_dependencies()
Error in installed.packages(massFlowR) : object 'massFlowR' not found
Could you help me to install and run your package. Actually I am eager to use your package .
Thanks
Parisa
from massflowr.
There is an error in your code. Could you please copy and paste the code that I shared in my previous message exactly as it is and run it?
from massflowr.
sure, my codes: if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(" massFlowR")
The downloaded source packages are in
‘C:\Users\Win 1809 UEFI\AppData\Local\Temp\RtmpSSeXLZ\downloaded_packages’
Warning message:
package ‘ massFlowR’ is not available (for R version 3.6.3)
Error in library(massFlowR) : there is no package called ‘massFlowR’
Thank you for your attention.
from massflowr.
Hi again, I changed my version R to 4.0 but there is same error
from massflowr.
Yes, there is an error in your code. Please use my code directly as provided without modifications.
from massflowr.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from massflowr.