---
title: "Installation"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Installation}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
```
## From R-universe (recommended)
Pre-built binaries — no Rust compiler required.
```{r installation_1, eval=FALSE}
install.packages("rfastlowess", repos = "https://thisisamirv.r-universe.dev")
```
## From conda-forge
```{r installation_2}
# In a conda environment
# conda install -c conda-forge r-rfastlowess
```
## From Source (GitHub)
Requires [Rust](https://rustup.rs/) and Rtools (Windows).
```{r installation_3, eval=FALSE}
devtools::install_github("thisisamirv/lowess-project", subdir = "bindings/r")
```
---
## System Requirements
- **R**: 4.4.0 or later
- **Windows**: [Rtools](https://cran.r-project.org/bin/windows/Rtools/) —
required for source installation
- **Rust**: Required for source installation only
([rustup.rs](https://rustup.rs/))
On Windows with Rtools, add the MinGW GNU target:
```sh
rustup target add x86_64-pc-windows-gnu
```
---
## Verifying Installation
```{r installation_4}
library(rfastlowess)
# Fit a simple example
x <- 1:10
y <- x + rnorm(10, sd = 0.5)
model <- Lowess()
result <- fit(model, x, y)
cat("Smoothed values:\n")
print(result$y)
```
```{r session-info}
sessionInfo()
```