Trouble Installing OptiLCMS package

Hello,
I’m trying to install OptiLCMS to run MetaboAnalystR, however when I try it with:

devtools::install_github(“xia-lab/OptiLCMS”, build = TRUE, build_vignettes = FALSE, build_manual =TRUE)

I run into trouble with the following error message:

Error: package or namespace load failed for ‘OptiLCMS’:
.onLoad failed in loadNamespace() for ‘Cairo’, details:
call: library.dynam(“Cairo”, pkgname, libname)
error: DLL ‘Cairo’ not found: maybe not installed for this architecture?
Error: loading failed
Execution halted

I tried many ways to download Cairo, and i can trace cairo.dll file in my directory. It seems that my computer isn’t recognizing the file, does anybody have a solution to this?

I am using Windows 11 with RStudio R 4.1.3

This is common issue related to installing some R packages on Windows OS, not specific to MetaboAnalystR. You can report this to the R Core Developer team. We are using Linux based system in both local development and the production environment on our server.

For serious R programming and learning, we recommend using Unix/Linux operating systems. However, our main effort is to support the web-based platforms