Skip to content

optifunset

Set Options if Unset

v1.0 · May 5, 2015 · GPL-2

Description

A single function 'options.ifunset(...)' is contained herewith, which allows the user to set a global option ONLY if it is not already set. By this token, for package maintainers this function can be used in preference to the standard 'options(...)' function, making provision for THEIR end user to place 'options(...)' directives within their '.Rprofile' file, which will not be overridden at the point when a package is loaded.

Downloads

CRAN

144

Last 30 days

24044th

407

Last 90 days

2K

Last year

Trend: +35.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

24

Last 90 days

96

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

2

Last 7 days

8

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
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 details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nicholas Hamilton <n.hamilton@unsw.edu.au>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Nicholas",
                    family = "Hamilton",
                    role = c("aut", "cre"),
                    email = "n.hamilton@unsw.edu.au")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Nicholas Hamilton <n.hamilton@unsw.edu.au>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Nicholas",
                    family = "Hamilton",
                    role = c("aut", "cre"),
                    email = "n.hamilton@unsw.edu.au")
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nicholas Hamilton <n.hamilton@unsw.edu.au>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Nicholas",
                    family = "Hamilton",
                    role = c("aut", "cre"),
                    email = "n.hamilton@unsw.edu.au")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Nicholas Hamilton <n.hamilton@unsw.edu.au>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Nicholas",
                    family = "Hamilton",
                    role = c("aut", "cre"),
                    email = "n.hamilton@unsw.edu.au")
as necessary.

Code

Code metrics have not been computed for this package yet.

Version History

1 tracked
new 1.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN May 5, 2015. Releases before tracking aren’t shown.