My sincere apologies that my colleagues had ignored your question.
The error you encountered arises because the installed binary version of the mzR package was built against a different version of Rcpp than the one currently on your system. This mismatch can occur after updates to Rcpp, particularly on Windows systems where packages are often installed as binaries rather than compiled from source.
To resolve this, do not downgrade Rcpp. Instead, reinstall mzR from source using BiocManager. This will compile mzR against your current Rcpp version. Ensure that RTools is properly configured in your system's PATH environment variable, as it provides the necessary compilers.
First, install BiocManager if it is not already present:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
Then, reinstall mzR from source:
BiocManager::install("mzR", type = "source")
After reinstalling, restart your R session and attempt to load mzR again:
library(mzR)
If the warning persists, update your entire Bioconductor installation:
BiocManager::install()
This should address the compatibility issue and allow the imputeLCMD function from PerseusR to execute without errors related to mzR.
Kevin