Skip to content

Commit

Permalink
Forgot to add files to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Aug 6, 2024
1 parent df733af commit 747194d
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: startup
Version: 0.22.0-9005
Version: 0.22.0-9006
Title: Friendly R Startup Configuration
Depends: R (>= 2.14.0)
Suggests: commonmark, tools, tcltk
Expand Down
6 changes: 6 additions & 0 deletions R/is_ark.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#' Checks if running R via Ark (An R Kernel)
#'
#' @return A logical
is_ark <- function() {
basename(commandArgs()[1]) == "ark"
}
6 changes: 6 additions & 0 deletions R/is_positron.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#' Checks if running R via Positron
#'
#' @return A logical
is_positron <- function() {
(Sys.getenv("POSITRON") == "1") && !nzchar(Sys.getenv("POSITRON_VERSION"))
}
14 changes: 14 additions & 0 deletions man/is_ark.Rd

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

14 changes: 14 additions & 0 deletions man/is_positron.Rd

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

0 comments on commit 747194d

Please sign in to comment.