title: Error: package or namespace load failed for ‘midasml’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
body: <p>I am trying to download the midasml package. My R version is 4.2.0. When I install the package I get no errors. But when I try library(midasml) I get this error:</p>
  <pre><code>Error: package or namespace load failed for ‘midasml’ in loadNamespace(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):  there is no package called ‘mcGlobaloptim’ 
  </code></pre>
  <p>I found on the Internet that mcGlobaloptim is removed from the CRAN package. I tried to install it but it does not work and I get:</p>
  <pre><code>Warning in install.packages :
    package ‘mcGlobaloptim’ is not available for this version of R
  
  A version of this package for your version of R might be available elsewhere,
  see the ideas at
  https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
  </code></pre>
  <p>How can I solve this problem?</p>