Skip to content

Commit

Permalink
bump to 0.1.1 deal with Error in if, the condition has length > 1 on …
Browse files Browse the repository at this point in the history
…r_version detection
  • Loading branch information
VincentGuyader committed Oct 16, 2024
1 parent cef6c05 commit 985a9b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: beaware
Title: R Session Tracking Tool For RSworkbench
Version: 0.1.0
Version: 0.1.1
Authors@R: c(
person("Cervan", "Girard", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4816-4624")),
Expand Down Expand Up @@ -43,4 +43,4 @@ VignetteBuilder:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
RoxygenNote: 7.3.2
7 changes: 5 additions & 2 deletions R/get_r_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ get_r_version <- function(pids){
cmd <- paste0("cat /proc/",x,"/environ")
r_version <- attempt(system(cmd, intern = TRUE), msg = "Cannot run cat of /proc/pid, please check your rights", silent = TRUE) %>%
str_extract(".+/R/(.+\\d.\\d.\\d|\\d.\\d.\\d)") %>%
str_extract("\\d.\\d.\\d")
data.frame("pid" = x, r_version = if(is.na(r_version)){"Not found"}else{r_version})
str_extract("\\d.\\d.\\d") %>%
unique() %>%
sort() %>%
.[1]
data.frame("pid" = x, r_version = if(isTRUE(is.na(r_version))){"Not found"}else{r_version})
})
}
1 change: 1 addition & 0 deletions vignettes/how-to.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>"
)
```
Expand Down
1 change: 1 addition & 0 deletions vignettes/memory.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>"
)
```
Expand Down

0 comments on commit 985a9b5

Please sign in to comment.