knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = FALSE,
  message = TRUE,
  out.width = "100%"
)

Uninstall tidyTools

tinyTools has been renamed as tinytools. So please uninstall it before you install laggedcor. And don't use it any more.

  1. detach it by:
detach("package:tinyTools")
  1. Remove it by:
remove.packages(pkgs = "tinyTools")
  1. Restart your R session.

If there are errors, ignore them.

Install laggedcor from github

You can just use the devtools or remote to install laggedcor.

Please update devtools first and then restart your r session.

install.packages("devtools")

Then install laggedcor:

devtools::install_github("jaspershen/laggedcor", dependencies = TRUE)

In the installation, it will ask if you want to update some packages, just press Enter key to skip it.

If there is a error like below:

Error: Failed to install 'laggedcor' from GitHub: HTTP error 403. API rate limit exceeded for 171.66.10.237. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Try to resolve it by:

  1. In you R console, type this code:
usethis::create_github_token()

It will open a page in browser, and create a "New personal access token" and copy it.

![](../man/figures/Screen Shot 2021-12-24 at 9.28.18 PM.png)

  1. Then type this code:
usethis::edit_r_environ()

and then add one line like below:

GITHUB_PAT=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

The GITHUB_PAT should be yours that is created in step 1.

And then restart R session and try again.

Session information

sessionInfo()


jaspershen/laggedcor documentation built on Nov. 9, 2023, 3:44 p.m.