Skip to content

Commit

Permalink
Update installation methods in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
doccstat authored Sep 6, 2023
1 parent 6503298 commit e832027
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 19 deletions.
26 changes: 17 additions & 9 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ If you'd like to learn how to use the fastcpd effectively, please refer to:

* [Sequential Gradient Descent and Quasi-Newton's Method for Change-Point Analysis](https://proceedings.mlr.press/v206/zhang23b.html)

[documentation & examples](https://fastcpd.xingchi.li/reference/fastcpd.html#ref-examples)

## Installation

```{r eval = FALSE}
Expand All @@ -41,20 +43,19 @@ install.packages("fastcpd")
```

```{r eval = FALSE}
# Install the development version from GitHub
# install.packages("pak")
pak::pak("doccstat/fastcpd")
```
# Install the development version from GitHub using either of the following
# commands:
If you're compiling from source, you can run
`pak::pkg_system_requirements("fastcpd")`, to see the complete set of system
packages needed on your machine.
## install.packages("pak")
pak::pak("doccstat/fastcpd")
[documentation & examples](https://fastcpd.xingchi.li/reference/fastcpd.html#ref-examples)
## install.packages("devtools")
devtools::install_github("doccstat/fastcpd")
```

## Dependency

`library(fastcpd)` will load the following packages:
`library(fastcpd)` depends on the following packages:

* [Rcpp](https://github.com/RcppCore/Rcpp), for C++ source code compilation.
* [RcppArmadillo](https://github.com/RcppCore/RcppArmadillo), for fast linear algebra.
Expand All @@ -63,6 +64,13 @@ packages needed on your machine.
* [glmnet](https://glmnet.stanford.edu/), for penalized regression.
* [ggplot2](https://github.com/tidyverse/ggplot2), for data visualization.

If you're compiling from source, you can run the following command to see the
complete set of system packages needed on your machine.

```{r eval = TRUE}
pak::pkg_sysreqs("doccstat/fastcpd")
```

## Contact us

Encountered a bug or unintended behavior?
Expand Down
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ to:
Change-Point
Analysis](https://proceedings.mlr.press/v206/zhang23b.html)

[documentation &
examples](https://fastcpd.xingchi.li/reference/fastcpd.html#ref-examples)

## Installation

``` r
Expand All @@ -36,21 +39,19 @@ install.packages("fastcpd")
```

``` r
# Install the development version from GitHub
# install.packages("pak")
pak::pak("doccstat/fastcpd")
```
# Install the development version from GitHub using either of the following
# commands:

If you’re compiling from source, you can run
`pak::pkg_system_requirements("fastcpd")`, to see the complete set of
system packages needed on your machine.
## install.packages("pak")
pak::pak("doccstat/fastcpd")

[documentation &
examples](https://fastcpd.xingchi.li/reference/fastcpd.html#ref-examples)
## install.packages("devtools")
devtools::install_github("doccstat/fastcpd")
```

## Dependency

`library(fastcpd)` will load the following packages:
`library(fastcpd)` depends on the following packages:

- [Rcpp](https://github.com/RcppCore/Rcpp), for C++ source code
compilation.
Expand All @@ -64,6 +65,25 @@ examples](https://fastcpd.xingchi.li/reference/fastcpd.html#ref-examples)
- [ggplot2](https://github.com/tidyverse/ggplot2), for data
visualization.

If you’re compiling from source, you can run the following command to
see the complete set of system packages needed on your machine.

``` r
pak::pkg_sysreqs("doccstat/fastcpd")
#> ℹ Loading metadata database
#> ✔ Loading metadata database ... done
#>
#> ── Install scripts ───────────────────────────────────────────── Ubuntu 20.04 ──
#> apt-get -y update
#> apt-get -y install libcurl4-openssl-dev libssl-dev zlib1g-dev make
#>
#> ── Packages and their system dependencies ──────────────────────────────────────
#> curl – libcurl4-openssl-dev, libssl-dev
#> data.table – zlib1g-dev
#> fs – make
#> openssl – libssl-dev
```

## Contact us

Encountered a bug or unintended behavior?
Expand Down

0 comments on commit e832027

Please sign in to comment.