switchcase
A Simple and Flexible Switch-Case Construct for the 'R' Language
v0.1.1
·
May 16, 2020
·
GPL-3
Description
Provides a switch-case construct for 'R', as it is known from other programming languages. It allows to test multiple, similar conditions in an efficient, easy-to-read manner, so nested if-else constructs can be avoided. The switch-case construct is designed as an 'R' function that allows to return values depending on which condition is met and lets the programmer flexibly decide whether or not to leave the switch-case construct after a case block has been executed.
Downloads
CRAN
157
Last 30 days
23751st
543
Last 90 days
1.7K
Last year
Trend: +36.5% (30d vs prior 30d)
r2u
CRAN
11
Last 30 days
26
Last 90 days
103
Last year
Trend: -21.4% (30d vs prior 30d)
CRAN Check Status
13
OK
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE
r-oldrel-macos-arm64
LazyData
'LazyData' is specified without a 'data' directory
NOTE
r-oldrel-macos-x86_64
LazyData
'LazyData' is specified without a 'data' directory
NOTE
r-oldrel-windows-x86_64
LazyData
'LazyData' is specified without a 'data' directory