R package for the text
more than just data
~ latest version ~
☞ The R package for the text is astsa. The Springer version was written under v1.8 but everything should work with minor differences with the latest version, which will always be on GitHub. If you want to update the package to the most recent version, you just need the following two lines:install.packages("remotes") # only need to do this once remotes::install_github("nickpoison/astsa")Some notes on the installation. If astsa is loaded, then detach it first:
detach(package:astsa)
. If you get a warning to install Rtools, ignore it. After successful installation, you may have to restart R and reload astsa, but at least you have to reload it.
Details about the updates and the current version of the package are on the NEWS page.
As with all packages, you have to load astsa before you use it by issuing the command
library(astsa)
This can be automated by creating a .First function. For example, start R, type
.First <- function(){library(astsa)}
and save the workspace when you quit... now astsa will be loaded at every start until you remove or change .First. This doesn't work with RStudio, you have to create a text file called .Rprofile in the working directory and then add the line
library(astsa)
and anything else you want to run at startup.
Note: Using Rstudio on a small screen (e.g., a laptop) will sometimes lead to an error with anything that produces a graphic such as
sarima
. That is a problem with Rstudio:
Problem with Plots or Graphics Device
~ cran ~
☞ I won't always push the latest version of the package to CRAN.
If you want to
download and install astsa from CRAN, start an R session and issue the command
install.packages("astsa")
You will be asked to download the file from the nearest repository.