Package Installation

Asked 2 years ago, Updated 2 years ago, 63 views

Thank you for your cooperation.

In statistics software R, I tried to install the micrust package and typed the following code (copied from the author's website).

local({
  info<-loadingNamespaceInfo()
  pkg<-info$pkgname
  ns<-.getNamespace(as.name(pkg))
  if(is.null(ns))
    stop("cannot find namespace environment for", pkg, domain=NA);
  dbbase<-file.path (info$libname, pkg, "R", pkg)
  lazyLoad(dbbase,ns,filter=function(n)n!=".__NAMESPACE__.")
})

However, the following message appears and the package installation fails.
What can I do about this?
Or is there any other way to install the micrust package? Please let me know.

>local({
+   info<-loadingNamespaceInfo()
+   pkg<-info$pkgname
+   ns<-.getNamespace(as.name(pkg))
+   if(is.null(ns))
+     stop("cannot find namespace environment for", pkg, domain=NA);
+   dbbase<-file.path (info$libname, pkg, "R", pkg)
+   lazyLoad(dbbase,ns,filter=function(n)n!=".__NAMESPACE__.")
+ })
Error indynGet("__LoadingNamespaceInfo__", stop("not loading anamespace")): 
   Does not load namespace 

r

2022-09-30 21:36

1 Answers

https://www.isglobal.org/software
from
Package source.micrust_1.2.5.tar.gz
Can't I download and install locally?
For local installation, if it is Rstudio,
Tools > install packages
In , you can choose package archive from install from


2022-09-30 21:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.