## Get VERSION and create file names ver <- sub(x = grep(x = readLines("DESCRIPTION"), pattern = "^Version: ", value = TRUE), pattern = "^Version: ", replacement = "") pkg.name <- "Regrans_" pkg.source <- paste0(pkg.name, ver, ".tar.gz") pkg.win <- paste0(pkg.name, ver, ".zip")
r ver
Segmented Linear Regression Models
Regrans was designed to fit segmented regression models.
Use the devtools
package (available from
CRAN) to
install automatically from the official Git repository:
library(devtools) install_github("rodrigosantana/Regrans")
Alternatively, download the package tarball: [r pkg.source
][]
and run from a UNIX terminal (make sure you are on the container file
directory):
cmd <- paste("R CMD INSTALL -l /path/to/your/R/library", pkg.source) cat(cmd, sep = "\n")
Or, inside an R
session:
inst <- paste0("install.packages(", "\"", pkg.source, "\"", ", repos = NULL,\n", " lib.loc = \"/path/to/your/R/library\",\n", " dependencies = TRUE)") cat(inst, sep = "\n")
Note that -l /path/to/your/R/library
in the former and lib.loc =
"/path/to/your/R/library"
in the latter are optional. Only use it if you
want to install in a personal library, other than the standard R
library.
Download Windows binary version: [r pkg.win
][] (do not unzip
it under Windows), put the file in your working directory, and from
inside R
:
instw <- paste0("install.packages(", "\"", pkg.win, "\"", ", repos = NULL,\n", " dependencies = TRUE)") cat(instw, sep = "\n")
The reference manual in PDF can be found here: Regrans-manual.pdf
This package is released under the GNU General Public License (GPL) v. 3.0
pkg.source.link <- paste0( "https://github.com/rodrigosantana/Regrans/blob/master/downloads/", pkg.source, "?raw=true") pkg.win.link <- paste0( "https://github.com/rodrigosantana/Regrans/blob/master/downloads/", pkg.win, "?raw=true")
[r pkg.source
]: r pkg.source.link
[r pkg.win
]: r pkg.win.link
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.