Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ singlehitapp::run_app() # opens the app in your browser
```

To install a specific release, replace `*release` with its tag, for example
`app@v0.4.0`.
`app@v0.4.0`. On an older version of R, see
[Older versions of R](#older-versions-of-r) first.

The tabs, from left to right:

Expand Down Expand Up @@ -110,6 +111,30 @@ other:
library(singlehit)
```

### Older versions of R

singlehit and the app contain no compiled code, but some of their dependencies
do. CRAN provides ready-to-install (binary) versions of packages only for the
current R release and the one before it. With an older R, packages may be
installed from source, which can be slow and may fail without compilers
(Rtools on Windows, Xcode on macOS).

Posit Public Package Manager (P3M) provides binaries for several older R
versions as well, on Windows, macOS, and common Linux distributions. Point R
at it before installing anything, including pak:

```r
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest"))
install.packages("pak") # if you don't have it yet
pak::repo_add(CRAN = "PPM@latest") # adds your Linux distribution's binaries
pak::pak("seanthimons/singlehit") # or the app, as shown in "Shiny app"
```

These settings last only for the current R session. The first line also
covers devtools users. On Linux, pak itself still installs from source; see
[pak's installation guide](https://pak.r-lib.org/reference/install.html) for a
binary. If your R is older than P3M covers, update R.

## Input data format

Every entry point (`as_dose_response()`, `read_dose_response()`,
Expand Down
5 changes: 5 additions & 0 deletions vignettes/articles/shiny-app.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ To install a specific release, replace `*release` with its tag, for example
`app@v0.4.0`. This replaces any other version of singlehit you have installed,
including a development version from `main`.

If you use an R version older than the current release and the one before it,
first follow [Older versions of R](../index.html#older-versions-of-r). It sets
up Posit Public Package Manager so that pak and the dependencies install as
ready-built binaries instead of being compiled.

Then start it whenever you want to use it:

```r
Expand Down
Loading