Warning in install.packages : package ‘NonlinearTSA’ is not available (for R version 3.5.1)

How to install the whole package or a specific file in that package?

Now I can see you have multiple warnings.
I am also not expert for these things. However, I will suggest you to install Rtools and try again because most packages require to have rtools.

For installing using source files of packages,
you can use following code this will allow you to browse to the location of downloaded file and select the file.

install.packages(file.choose(), repos=NULL)

The problem is that there is no binary installer for your R version and you don't have a compiler (Rtools) installed in your system so you can't install from source. To solve this you could either update R so you have access to a binary installer or install Rtools and compile the package.

1 Like

Even now after sucessfully installing the package and library function. There is an error.

You haven't successfully installed the package, look closer, you are getting installation error messages.

1 Like

In addition to the installation error, I checked the package documentation and cannot find the Enders_Granger_1998() function in the package nonlinearTseries.

This function is available in the package NonlinearTSA. Try using the correct package.

Yes, I looking for NonlinearTSA only. But unable to install that package.

According the screenshot posted above, you tried to install and use the package nonlinearTseries.

How to install Rtool?

That was a mistake, I am looking for nonlinearTSA only. See my previous screenshots.

Since you are using an older version of R, you need to install rtools from the following link:
https://cran.r-project.org/bin/windows/Rtools/history.html

I have already downloaded it from Using Rtools40 on Windows. But don't know how to connect it with R.

You are using R version 3.5. For that you require rtools35. The link is given in the table at the above web page.

Rtools40 is for R version 4.0.

Edit: In my opinion you should install R's latest version and use it with the latest rtools version.

1 Like

Am I ok now?

Install directly from one of the CRAN mirrors.

install.packages("NonlinearTSA")

This will install all the dependencies.
Do not download the package to your desktop and install from there.

1 Like

Use a newer R version as I suggested in the previous post. The warning messages are clear.
Latest R with latest rtools.

Now you are having connectivity issues, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.

But, I also agree with @Timesaver, you should consider updating your R version, at will make things easier for you in general.

Note: Please do not post screenshots, they are considered a bad practice here, post the console output as formatted code instead, here is how to do it:

Hi faparvez, the latest version of R is 4.0.4. If your computer is compatible with this version of R, try to install this version. Maybe then the package could be downloaded. Good Luck
Somaira Azam

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.