R language sadly urges the whole process of installing TSA (self-retention


R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()'for an HTML browser interface to help.
Type 'q()' to quit R.

[R.app GUI 1.70 (7463) x86_64-apple-darwin15.6.0]

[Workspace restored from /Users/chenwl/.RData]
[History restored from /Users/chenwl/.Rapp.history]

> install.packages("~/leaps_3.0.tgz")
inferring 'repos = NULL' from 'pkgs'
> install.packages("TSA")
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/TSA_1.01.tgz'
Content type 'application/octet-stream' length 369469 bytes (360 KB)
==================================================
downloaded 360 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
> library(TSA)
Loading required package: leaps
Error: package ‘leaps’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘leaps’ was built under R version 3.5.0
> install.packages("~/leaps_3.0.tgz")
inferring 'repos = NULL' from 'pkgs'
> w2 <- scan(file='/Users/chenwl/Documents/Time Series Analysis/Data/W2.txt')
Read 302 items
> acf(sqrt(w2))
> pacf(sqrt(w2))
> BoxCox.ar(w2)
Error in BoxCox.ar(w2) : could not find function "BoxCox.ar"
> install.packages("~/leaps_3.0.tgz")
inferring 'repos = NULL' from 'pkgs'
> install.packages("/Users/chenwl/leaps_3.0.tgz")
inferring 'repos = NULL' from 'pkgs'
> install.packages("leaps_3.0.tar.gz", repos=NULL, type="source")
* installing *source* package ‘leaps’ ...
** package ‘leaps’ successfully unpacked and MD5 sums checked
** libs
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
ERROR: compilation failed for package ‘leaps’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/leaps’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/leaps’
Warning message:
In install.packages("leaps_3.0.tar.gz", repos = NULL, type = "source") :
  installation of package ‘leaps_3.0.tar.gz’ had non-zero exit status
> install.packages("~/leaps_3.0.tgz", repos=NULL, type="source")
* installing *binary* package ‘leaps’ ...
* DONE (leaps)
> library(TSA)
Loading required package: leaps
Error: package ‘leaps’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘leaps’ was built under R version 3.5.0
> install.packages("~/locfit_1.5-9.1.tgz", repos=NULL, type="source")
* installing *binary* package ‘locfit’ ...
* DONE (locfit)
> install.packages("~/mgcv_1.8-23.tgz", repos=NULL, type="source")
* installing *binary* package ‘mgcv’ ...
* DONE (mgcv)
> install.packages("~/nlme_3.1-120.tgz", repos=NULL, type="source")
Warning: invalid package ‘/Users/chenwl/nlme_3.1-120.tgz’
Error: ERROR: no packages specified
Warning message:
In install.packages("~/nlme_3.1-120.tgz", repos = NULL, type = "source") :
  installation of package ‘/Users/chenwl/nlme_3.1-120.tgz’ had non-zero exit status
> install.packages("~/nlme_3.1-137.tgz", repos=NULL, type="source")
* installing *binary* package ‘nlme’ ...
* DONE (nlme)
> install.packages("~/tseries_0.10-44.tgz",repos=NULL, type="source")
* installing *binary* package ‘tseries’ ...
* DONE (tseries)
> install.packages("~/quadprog_1.5-5.tgz", repos=NULL, type="source")
* installing *binary* package ‘quadprog’ ...
* DONE (quadprog)
> install.packages("~/zoo_1.8-1.tgz", repos=NULL, type="source")
* installing *binary* package ‘zoo’ ...
* DONE (zoo)
> library("nlme", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Warning message:
package ‘nlme’ was built under R version 3.4.4
> library("nlme", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("mgcv", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("mgcv", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("locfit", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("locfit", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
objc[744]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffae652b68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x113731cd8). One of the two will be used. Which one is undefined.
> library("locfit", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
locfit 1.5-9.1      2013-03-22
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
This is mgcv 1.8-23. For overview type 'help("mgcv-package")'.
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("locfit", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Error: package or namespace load failed for ‘quadprog’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libRblas.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so
  Reason:image not found
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Error: package or namespace load failed for ‘quadprog’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libRblas.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so
  Reason: image not found
> library("zoo", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric

> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Error: package or namespace load failed for ‘tseries’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libRblas.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so
  Reason: image not found
In addition: Warning message:
package ‘tseries’ was built under R version 3.4.4
> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("tseries", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Error: package or namespace load failed for ‘tseries’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libRblas.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so
  Reason: image not found
In addition: Warning message:
package ‘tseries’ was built under R version 3.4.4
> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/3.4.4/Resources/library")
Error in library("tseries", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Error: package or namespace load failed for ‘quadprog’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libRblas.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/quadprog/libs/quadprog.so
  Reason:image not found
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("quadprog", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> (.packages())
 [1] "zoo"       "mgcv"      "locfit"    "nlme"      "stats"    
 [6] "graphics"  "grDevices" "utils"     "datasets"  "methods"  
[11] "base"     
> install.packages()[,c('Package','Version','LibPath')]
Error in install.packages() : no packages were specified
> help(package='TSA')
starting httpd help server ... done
> install.packages()[,c('quadprog','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/quadprog_1.5-5.tgz'
Content type 'application/octet-stream' length 37657 bytes (36 KB)
==================================================
downloaded 36 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("quadprog", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> (.packages())
 [1] "quadprog"  "zoo"       "mgcv"      "locfit"    "nlme"     
 [6] "stats"     "graphics"  "grDevices" "utils"     "datasets"
[11] "methods"   "base"     
> install.packages()[,c('tseries','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/tseries_0.10-44.tgz'
Content type 'application/octet-stream'length 327476 bytes (319 KB)
==================================================
downloaded 319 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")

    ‘tseries’ version: 0.10-44

    ‘tseries’ is a package for time series analysis and
    computational finance.

    See ‘library(help="tseries")’ for details.

Warning message:
package ‘tseries’ was built under R version 3.4.4
> library("tseries", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
> (.packages())
 [1] "tseries"   "quadprog"  "zoo"       "mgcv"      "locfit"   
 [6] "nlme"      "stats"     "graphics"  "grDevices" "utils"    
[11] "datasets"  "methods"   "base"     
> install.packages()[,c('TSA','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/TSA_1.01.tgz'
Content type 'application/octet-stream' length 369469 bytes (360 KB)
==================================================
downloaded 360 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> library("TSA", lib.loc="/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library")
Error in library("TSA", lib.loc = "/Library/Frameworks/R.framework/Versions/3.4.4/Resources/library") :
  no library trees found in 'lib.loc'
> library("TSA", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Loading required package: leaps
Error: package ‘leaps’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘leaps’ was built under R version 3.5.0
> library(TSA)
Loading required package: leaps
Error: package ‘leaps’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘leaps’ was built under R version 3.5.0
> install.packages(TSA)
Error in install.packages(TSA) : object 'TSA' not found
> install.packages()[,c('TSA','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/leaps_3.0.tgz'
Error in download.file(url, destfile, method, mode = "wb", ...) :
  cannot open URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/leaps_3.0.tgz'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
  URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/leaps_3.0.tgz': status was 'Couldn't connect to server'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘leaps’ failed
NULL
install.packages()[,c('TSA','Version','LibPath')]
>
> install.packages()[,c('leaps','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/leaps_3.0.tgz'
Content type 'application/octet-stream' length 69196 bytes (67 KB)
==================================================
downloaded 67 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('zoo','Version','LibPath')]
Error in install.packages() : no packages were specified
> install.packages()[,c('locfit','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/locfit_1.5-9.1.tgz'
Content type 'application/octet-stream'length 658543 bytes (643 KB)
==================================================
downloaded 643 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('mgcv','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/mgcv_1.8-23.tgz'
Content type 'application/octet-stream' length 2914330 bytes (2.8 MB)
==================================================
downloaded 2.8 MB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('nlme','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/nlme_3.1-137.tgz'
Content type 'application/octet-stream' length 2350622 bytes (2.2 MB)
==================================================
downloaded 2.2 MB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('tseries','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/tseries_0.10-44.tgz'
Content type 'application/octet-stream'length 327476 bytes (319 KB)
==================================================
downloaded 319 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('quadprog','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/quadprog_1.5-5.tgz'
Content type 'application/octet-stream' length 37657 bytes (36 KB)
==================================================
downloaded 36 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> install.packages()[,c('zoo','Version','LibPath')]
trying URL 'https://mirrors.tongji.edu.cn/CRAN/bin/macosx/el-capitan/contrib/3.4/zoo_1.8-1.tgz'
Content type 'application/octet-stream'length 904856 bytes (883 KB)
==================================================
downloaded 883 KB


The downloaded binary packages are in
    /var/folders/6d/7308jyyn007c2n7m9f6j0lfc0000gn/T//Rtmp1wOKB3/downloaded_packages
NULL
> library("nlme", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("mgcv", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("locfit", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("quadprog", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("zoo", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("tseries",lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
> library("TSA", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")
Loading required package: leaps

Attaching package: ‘TSA’

The following objects are masked from ‘package:stats’:

    acf, arima

The following object is masked from ‘package:utils’:

    tar

> library(TSA)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324672121&siteId=291194637