Skip to content

Commit

Permalink
remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-baumann committed Jan 19, 2024
1 parent 7dfa79e commit 7117f19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions dev/running_r_or_shell_code_in_nix_from_r.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ Then, we will evaluate this test code through a `nix-shell` R session. This adds
This approach guarantees reproducible side effects and effectively streams messages and errors into the R session. Thereby, the {sys} package facilitates capturing standard outputs and errors as text output messages.

```{r, eval=FALSE}
df_as_vector <- function(x) {
out <- as.vector(x = x, mode = "list")
return(out)
}
# now run it in `nix-shell`; `with_nix()` takes care
# of exporting global objects of `df_as_vector` recursively
out_nix <- with_nix(
Expand Down
5 changes: 0 additions & 5 deletions vignettes/running-r-or-shell-code-in-nix-from-r.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ This approach guarantees reproducible side effects and effectively streams messa


```{r eval = FALSE}
df_as_vector <- function(x) {
out <- as.vector(x = x, mode = "list")
return(out)
}
# now run it in `nix-shell`; `with_nix()` takes care
# of exporting global objects of `df_as_vector` recursively
out_nix <- with_nix(
Expand Down

0 comments on commit 7117f19

Please sign in to comment.