This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am testing if Alteryx can used for genetic analysis, and am attempting to use an R package within it that performs specific data normalization processes. The R package (Seurat) installs fine, but when I try and load it, library(Seurat), it returns an error:
Error: package 'Matrix' 1.2.12 was found, but >= 1.2.14 is required by 'Seurat'
The 'Matrix' package installed on Alteryx is 1.2.12 (I looked in the Alteryx file), when I attempt to update it using the R Install tool, it does not update it to 1.2.14 or higher, however, I get no error or warning codes when I do install.
I the tried to do a simple install call instead (install.packages("Matrix", repos = "http://cran.studio.com")). With this approach I get a warning saying:
package 'Matrix' is not available (for R version 3.4.4)
I did query for the R version in Alteryx, and it is 3.4.4. Based on the description from CRAN directory for Matrix, this R version should support this version of Matrix. As a side note, I do have R studio and R installed on my computer.
Could you use .libpaths() to change the library directory to point at your RStudio library and see if you can successfully load the packed from here; I imagine not but worth a try.
And as a heads up, when I'm installing r packages I will go to c program files Alteryx r bin and then there is a r.exe, right click on this and got run as administrator, then type in your install.packages command, it will prompt you to pick a cran mirror and you will see any install issues you may have.
I haven't personally tried that yet so I'm also interested to see how it turns out for you. There is a risk that updating one of those packages might break some Predictive Tool macro, so I would make sure to make a backup first before trying to update a package as @BenMoss suggested.
When I ran into a similar issue I opted to run my R script using the command tool instead because there were too many dependencies that required updating.
The Seurat package loaded without a problem! So I guess you can swap out the R package files for a different version. Have not tested other tool functionalities that may use the Matrix package, but so far so good. Thanks for the help everyone!