要么将所有内容上移一级,这样您就没有名为 tsDyn 的中间文件夹,然后可以:
install_github("MatthieuStigler/tsDyn")
或者保持原样
install_github("MatthieuStigler/tsDyn/tsDyn")
证据就在布丁中
library(devtools)
install_github("MatthieuStigler/tsDyn/tsDyn")
# Downloading github repo MatthieuStigler/tsDyn@master
# Installing tsDyn
# "C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \
# "C:/Users/dominic/AppData/Local/Temp/RtmpiwFHUz/devtools30d0779d2870/MatthieuStigler-tsDyn-8048816/tsDyn" \
# --library="D:/Copy/R/win-library/3.1" --install-tests
#
# * installing *source* package 'tsDyn' ...
# ** libs
#
# *** arch - i386
# gcc -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c llar.c -o llar.o
# gcc -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c misc.c -o misc.o
# gcc -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c search.c -o search.o
# gcc -m32 -shared -s -static-libgcc -o tsDyn.dll tmp.def llar.o misc.o search.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/i386 -lR
# installing to D:/Copy/R/win-library/3.1/tsDyn/libs/i386
#
# *** arch - x64
# gcc -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c llar.c -o llar.o
# gcc -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c misc.c -o misc.o
# gcc -m64 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c search.c -o search.o
# gcc -m64 -shared -s -static-libgcc -o tsDyn.dll tmp.def llar.o misc.o search.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-31~1.2/bin/x64 -lR
# installing to D:/Copy/R/win-library/3.1/tsDyn/libs/x64
# ** R
# ** data
# ** inst
# ** tests
# ** preparing package for lazy loading
# ** help
# *** installing help indices
# ** building package indices
# ** installing vignettes
# ** testing if installed package can be loaded
# *** arch - i386
# *** arch - x64
# * DONE (tsDyn)
library(tsDyn)
tsDyn::autopairs
# function (x, lag = 1, h, type = c("levels", "persp", "image",
# "lines", "points", "regression"))
# {
# panel <- list(levels = function() sm::sm.density(X, h = rep(h,
# 2), xlab = xlab, ylab = ylab, main = "density", display = "slice"),
# persp = function() sm::sm.density(X, h = rep(h, 2), xlab = xlab,
# ylab = ylab, main = "density", display = "persp"),
# image = function() sm::sm.density(X, h = rep(h, 2), xlab = xlab,
# ylab = ylab, main = "density", display = "image"),
# lines = function() plot(X, xlab = xlab, ylab = ylab,
# main = "lines", type = "l"), points = function() plot(X,
# xlab = xlab, ylab = ylab, main = "scatter"), regression = function() sm::sm.regression(X[,
# 1], X[, 2], h = h, xlab = xlab, ylab = ylab, main = "regression",
# ask = FALSE))
# lags <- c(-lag, 0)
# X <- embedd(x, lags = lags)
# xlab <- paste("lag", lag)
# ylab <- paste("lag", 0)
# type <- match.arg(type)
# if (missing(h)) {
# h <- sm::hnorm(X)[1]
# }
# panel[[type]]()
# }
# <environment: namespace:tsDyn>