Skip to content

Commit

Permalink
sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Dec 29, 2023
1 parent fa38459 commit ba78885
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# playground
# playground4rocker

Here I'm interested in the github actions and docker deployment workflows. So, for the functions.R and _targets.R files, I used and updated the code from https://www.brodrigues.co/blog/2022-11-19-raps/ by @b-rodrigues An example can also be seen here https://github.com/b-rodrigues/dockerized_pipeline_demo

## Github Actions

Expand All @@ -13,9 +15,9 @@ The output files will be uploaded as an artifact zip of the executed jobs.
First clone the repository in your computer:

```
$ git clone https://github.com/jrosell/playground
$ git clone git@github.com:jrosell/playground4rocker.git
$ cd playground
$ cd playground4rocker
```

Then build the image and run the container.
Expand Down
5 changes: 5 additions & 0 deletions _targets.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
cat("_targets.R\n")

# Here I'm interested in the github actions and docker deployment workflows.
# So, I used and updated the code from https://www.brodrigues.co/blog/2022-11-19-raps/ by @b-rodrigues
# An example can also be seen here https://github.com/b-rodrigues/dockerized_pipeline_demo

library(targets)
library(dplyr)
library(ggplot2)
Expand Down
4 changes: 4 additions & 0 deletions functions.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
cat("functions.R\n")

# Here I'm interested in the github actions and docker deployment workflows.
# So, I used and updated the code from https://www.brodrigues.co/blog/2022-11-19-raps/ by @b-rodrigues
# An example can also be seen here https://github.com/b-rodrigues/dockerized_pipeline_demo

# clean_unemp() is a function inside a package I made. Because I don't want you to install
# the package if you're following along, I'm simply sourcing it:
source("https://raw.githubusercontent.com/b-rodrigues/myPackage/main/R/functions.R")
Expand Down
6 changes: 2 additions & 4 deletions output/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# playground

## Run in a local computer

The output files will be saved here when the job is executed.
The output files will be saved in this folder when the job is executed.

## Run in Github Actions

The output files will be uploaded as an artifact zip of the executed job.
The output files will be uploaded as an artifact zip of the executed jobs.

0 comments on commit ba78885

Please sign in to comment.