Error message in R when trying to plot metabolite set

I tried to plot metabolite set boxplots in R version of MetaboAnalyst using the commands that are in Rhistory when I use the website. I’m doing this because I would like to get a higher resolution picture of the boxplots. Everything works until I get to the command PlotQEA.MetSet, when I get an error message: Error in PlotQEA.MetSet(mSet, “Valine, leucine and isoleucine biosynthesis”, : object ‘current.msetlib’ not found

The code is:

mSet<-InitDataObjects(“conc”, “msetqea”, FALSE)
mSet<-Read.TextData(mSet, “KEGG_Data.csv”, “colu”, “disc”);
mSet<-SanityCheckData(mSet)
mSet<-ReplaceMin(mSet);
mSet<-CrossReferencing(mSet, “hmdb_kegg”);
mSet<-CreateMappingResultTable(mSet)
mSet<-PreparePrenormData(mSet)
mSet<-Normalization(mSet, “NULL”, “LogNorm”, “AutoNorm”, ratio=FALSE, ratioNum=20)
mSet<-PlotNormSummary(mSet, “norm_0_”, “png”, 72, width=NA)
mSet<-PlotSampleNormSummary(mSet, “snorm_0_”, “png”, 72, width=NA)
mSet<-SetMetabolomeFilter(mSet, F);
mSet<-SetCurrentMsetLib(mSet, “kegg_pathway”, 2);
mSet<-CalculateGlobalTestScore(mSet)
mSet<-PlotQEA.Overview(mSet, “qea_0_”, “net”, “png”, 72, width=NA)
mSet<-PlotEnrichDotPlot(mSet, “qea”, “qea_dot_0_”, “png”, 72, width=NA)
mSet ← PlotQEA.MetSet(mSet, “Valine, leucine and isoleucine biosynthesis”, “png”, 300, width=NA)

sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=Finnish_Finland.utf8
[2] LC_CTYPE=Finnish_Finland.utf8
[3] LC_MONETARY=Finnish_Finland.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=Finnish_Finland.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base

other attached packages:
[1] httr_1.4.5 Rserve_1.8-11
[3] rjson_0.2.21 pls_2.8-1
[5] MetaboAnalystR_3.2.0 igraph_1.4.1
[7] mixOmics_6.22.0 ggplot2_3.4.1
[9] lattice_0.20-45 MASS_7.3-58.2