Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jan 25, 2022
2 parents 3d98568 + ab71f82 commit af16ff5
Show file tree
Hide file tree
Showing 10 changed files with 401 additions and 164 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "rim"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
authors = ["Gábor Csárdi <[email protected]"]
license = "MIT"
Expand All @@ -17,7 +17,6 @@ categories = ["command-line-utilities"]

[dependencies]
clap = "3.0.10"
clap_complete = "3.0.4"
futures = "0.3.17"
futures-util = "0.3.14"
lazy_static = "1.3.0"
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

VERSION=$(shell grep "^version" Cargo.toml | tr -cd '0-9.')
SOURCES=$(wildcard src/*.rs)
SOURCES=$(wildcard src/*.rs) $(wildcard src/*.in)

all:
@echo "Call 'make win' or 'make macos'"
Expand Down Expand Up @@ -57,7 +57,11 @@ rim-unnotarized-%.pkg: build.stamp distribution.xml.in
--version $(VERSION) \
--sign "Developer ID Installer: Gabor Csardi" $@

build.stamp: target/release/rim target/x86_64-apple-darwin/release/rim
README.md: README.Rmd $(SOURCES)
cargo build --release
R -q -e 'rmarkdown::render("README.Rmd")'

build.stamp: target/release/rim target/x86_64-apple-darwin/release/rim README.md
rm -rf build-arm64 build-x86_64
# arm64
mkdir -p build-arm64/usr/local/bin
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# rim 0.1.5

* Experimental Windows version.

# rim 0.1.4

* `resolve` and `add` work again.
Expand Down
80 changes: 80 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
comment = "#>",
out.width = "100%"
)
```

# The R Installation Manager

Install, remove, configure R versions.

## 🚀&nbsp; Features

* Works on macOS and Windows. Linux version is coming soon!
* Install multiple R versions, select the default one, run multiple
versions at the same time using quick links. E.g. `R-4.1` starts
R 4.1.x.
* Select R version to install using symbolic names: `devel`, `release`,
`oldrel` and more.
* On M1 macs select between x86_64 and arm64 versions or R, or install both.
* Makes sure that installed packages are kept separete from the R
installation.
* Includes auto-complete for `zsh` and `bash`.
* Installs Rtools on Windows.

## ⬇️&nbsp; Installation

Download the latest release from https://github.com/gaborcsardi/rim/releases.

### Auto-complete

The macOS installer and also installs the `zsh` and `bash` completions.
`zsh` completions work out of the box.
For `bash` completions install the `bash-completion` package from Homebrew
and make sure it is loaded from your `.bashrc`. (You don't need to install
`bash` from Homebrew, but you can if you like.)

## ⚙️&nbsp; Usage

Use `rim add` to add a new R installation:

```
rim add release
```

Use `rim list` to list the currently installed R versions, and `rim default`
to set the default one.

Run `rim` to see all commands and examples:

```{bash, eval = FALSE}
rim
```

```{bash, echo = FALSE, error = TRUE}
./target/release/rim
```

Run `rim <subcommand> --help` for information about a subcommand:

```{bash, eval = FALSE}
rim default --help
```

```{bash, echo = FALSE}
./target/release/rim default --help
```

## 🤝&nbsp; Feedback

Please open an issue in our issue tracker at
https://github.com/gaborcsardi/rim/issues

## 📘&nbsp; License

MIT 2021-2022 © RStudio Pbc.
Loading

0 comments on commit af16ff5

Please sign in to comment.