Skip to main content
Solved

R_Link supported libraries

  • November 1, 2019
  • 2 replies
  • 141 views

Forum|alt.badge.img+3

Dear Community,

 

I am working on a functionality for which I would like to use R language. I would like to use the library called “TSA”. I installed it in R. When I try to run the script, AIMMS throws the following error: “R_tryEval: Error in library(TSA): there is no package called ‘TSA’”. I have tested some other libraries (e.g. Rcpp), and there was no error.

 

I found a chapter in the R-Link documentation called “R-packages on the AIMMS cloud”. I didn’t find TSA there, but I did Rcpp. I couldn’t understand based on the text what is special regarding these libraries. 

 

Am I thinking well that these are the only libraries I can use in R scripts?

 

Thanks,
Zsolti

Best answer by Zsolt Mihály

In the meantime, the question got solved, partly by the contribution of AIMMS support.

 

When using developer mode, any R libraries are available. The problem was that I had had several R versions. In the library manual, I read that the newest version compatible with AIMMS is R 3.5.2. However, AIMMS looked for the library in the libraries of the newest R verion on the computer. After installing TSA for that R version, the error didn’t occur any more.

 

On AIMMS Cloud, there is a set of libraries that can be used. As Mohan wrote, you will need to contact support@aimms.com with a request to add a new package.

View original

2 replies

mohansx
Forum|alt.badge.img+5
  • Former AIMMSian
  • 223 replies
  • November 7, 2019

If you need to use an R package that isn’t on that list on AIMMS Cloud, then you will need to contact support@aimms.com with a request to add that package. Please do check if there are any alternatives from the list that you could use (for eg. package forecast might be used for time series analysis). 


Forum|alt.badge.img+3
  • Author
  • AIMMS Partner
  • 11 replies
  • Answer
  • November 9, 2019

In the meantime, the question got solved, partly by the contribution of AIMMS support.

 

When using developer mode, any R libraries are available. The problem was that I had had several R versions. In the library manual, I read that the newest version compatible with AIMMS is R 3.5.2. However, AIMMS looked for the library in the libraries of the newest R verion on the computer. After installing TSA for that R version, the error didn’t occur any more.

 

On AIMMS Cloud, there is a set of libraries that can be used. As Mohan wrote, you will need to contact support@aimms.com with a request to add a new package.