TERR: 'there is no package called 'WeibullR'' error while the package is installed

Hi all,

In a report we're using TERR to do Weibull analyses. My colleage built the report and it works fine on her computer.

On my computer however I'm facing an issue I can't make sense of. I receive the 'there is no package called 'WeibullR'' error (see figure 1) while the package is installed (see figure 2).

What's happening here and how can it be solved?

Cheers,

Jorrit

Figure 1

Figure 2

UPDATE:

My colleage told me that normally the WeibullR package is identified, but that the problem occurs when this package is called within an RGraph function like this:

AllDataplot <- RGraph(
      print(
      plot.wblr(
      list(
            wblr.conf(wblr.fit(wblr(DfFailN$FailN,DfSusN$SuspN,col="blue"),method.fit="mle"),method.conf="lrb")),
            xlim=c(1,1e12),main="All Data")
      ),
      packages="WeibullR",data = c("DfFailN","DfSusN"))

3 Comments

SInce the error comes from a call to RinR::RGraph, it sounds like your copy of R (not TERR) doesn't have the package installed.  FIre up R, install the package on it, and see if the problem goes away.  If you don't know which copy of R on your system TERR is calling, you can use RinR::REvaluate(R.home()) to find out.

wdunlap - Aug 24, 2018 - 8:44am ::

Thanks for your comment. We are not using a remote TERR engine, the report is set to use the local TERR engine.

jorrit.sandbrink - Aug 23, 2018 - 11:04pm ::

Is it possible that Spotfire is using a remote TERR engine to run data functions but the local TERR for the console?  You can check this out by running the following script in both contexts:

output <- capture.output({
    cat("version=", version$version.string, "\n")
    cat("R.home()=", R.home(), "\n")
    cat("HOSTNAME=", Sys.getenv("HOSTNAME"), "\n")
    cat("COMPUTERNAME=", Sys.getenv("COMPUTERNAME"), "\n")
    cat("installed packages=", rownames(installed.packages()), "\n")
})
 

For the data function containing this script, make 'output' a data table output (there are no inputs) and  view it in a table visualization.  For the console test, follow the script with cat(output, sep="\n").  Do you see any differences between the data function's output and the console's output?

wdunlap - Aug 22, 2018 - 10:25am ::
View More Comments + Add a Comment

(1) Answer

Login