Giter Site home page Giter Site logo

Installation problem about massflowr HOT 6 CLOSED

pshahnazari avatar pshahnazari commented on July 20, 2024
Installation problem

from massflowr.

Comments (6)

lauzikaite avatar lauzikaite commented on July 20, 2024

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.

pshahnazari avatar pshahnazari commented on July 20, 2024

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.

lauzikaite avatar lauzikaite commented on July 20, 2024

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.

pshahnazari avatar pshahnazari commented on July 20, 2024

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.

pshahnazari avatar pshahnazari commented on July 20, 2024

Hi again, I changed my version R to 4.0 but there is same error

from massflowr.

lauzikaite avatar lauzikaite commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.