Skip to content

Commit

Permalink
Merge pull request #25 from bainmatt/demo-render
Browse files Browse the repository at this point in the history
DOC: Document workflow step-by-step and test logging temp output
  • Loading branch information
bainmatt authored Aug 31, 2024
2 parents 8a0803b + 659abec commit b76966c
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions vignettes/demo-resume.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ autocv::in_tmp_env({
message("5. Inspect application metadata...")
app_df <- autocv::get_app_info()
print(app_df)
# resume_path <- autocv::get_app_info(
# id = "AB", field = "resume_path"
# )$resume_path
# /TODO: somehow copy tmpenv output into repo
# target_path <- file.path(Sys.getenv("ROOT"), "demo")
# autocv::copy_files(
# source_paths = resume_path,
# target_paths = "."
# )
})
```

Expand All @@ -73,7 +62,6 @@ documents and reports that you can review [here]().

```{r build-base}
# TODO: include each of the above with interleaved explanations
# TODO: capture output directory somehow (move over from temp)
autocv::in_tmp_env({
message("1. Build the project directory...")
Expand Down Expand Up @@ -101,3 +89,39 @@ autocv::in_tmp_env({
})
```

```{r check}
autocv::in_tmp_env({
message("4. Check application keywords...")
report_df <- autocv::check_skills()
print(report_df)
})
```

```{r inspect}
autocv::in_tmp_env({
message("5. Inspect application metadata...")
app_df <- autocv::get_app_info()
print(app_df)
})
```

```{r log-test}
autocv::in_tmp_env({
resume_plain_path <- autocv::get_app_info(
id = "AB", field = "resume_plain_path"
)$resume_plain_path
print(fs::path_wd())
# TODO: copy tmpenv output into repo in git-compat way) (fs::path_wd)
target_path <- file.path(fs::path_wd(), basename(resume_plain_path))
autocv::copy_files(
source_paths = resume_plain_path,
target_paths = target_path
)
})
```

0 comments on commit b76966c

Please sign in to comment.