Skip to content

Commit

Permalink
clears up issues with using docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmflight committed Feb 1, 2024
1 parent 76f602f commit 06b6985
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 29 deletions.
12 changes: 6 additions & 6 deletions docs/ici_kt_manuscript.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output:
rmarkdown::html_document:default:
self_contained: yes
date: '`r Sys.time()`'
bibliography: '`r here::here("doc/icikt_references.json")`'
bibliography: '`r here::here("docs/icikt_references.json")`'
csl: plos-computational-biology.csl
editor_options:
chunk_output_type: console
Expand All @@ -37,7 +37,7 @@ tar_source("R")
doc_type = knitr::opts_knit$get("rmarkdown.pandoc.to")
if (doc_type %in% "docx") {
unlink(here::here("doc", "ici_kt_manuscript_files"), recursive = TRUE)
unlink(here::here("docs", "ici_kt_manuscript_files"), recursive = TRUE)
}
Expand All @@ -52,9 +52,9 @@ knitr::opts_chunk$set(echo = FALSE,
fig.process = figure_count$modify_path,
dpi = 600,
dev = "ragg_png")
supp_figure_count = readRDS(here::here("doc/supp_figure_count.rds"))
supp_table_count = readRDS(here::here("doc/supp_table_count.rds"))
load(here::here("doc/supp_stuff.rda"))
supp_figure_count = readRDS(here::here("docs/supp_figure_count.rds"))
supp_table_count = readRDS(here::here("docs/supp_table_count.rds"))
load(here::here("docs/supp_stuff.rda"))
```

Expand Down Expand Up @@ -136,7 +136,7 @@ Both dropping or imputing missing values are likely to cause the calculated samp
```{r}
#| label: problem
curr_dir = getwd()
problem_loc = file.path(curr_dir, "doc", "the_problem.png")
problem_loc = file.path(curr_dir, "docs", "the_problem.png")
#message(problem_loc)
#file.exists(problem_loc)
knitr::include_graphics(problem_loc, rel_path = FALSE)
Expand Down
Binary file modified docs/ici_kt_manuscript.docx
Binary file not shown.
12 changes: 6 additions & 6 deletions docs/ici_kt_manuscript.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/ici_kt_manuscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ output:
- '--lua-filter=author-info-blocks.lua'
rmarkdown::html_document:default:
self_contained: yes
date: '2024-01-31 15:05:33.795949'
bibliography: '/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/doc/icikt_references.json'
date: '2024-02-01 08:30:47.557145'
bibliography: '/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/docs/icikt_references.json'
csl: plos-computational-biology.csl
editor_options:
chunk_output_type: console
Expand Down Expand Up @@ -76,7 +76,7 @@ The two most common approaches for ignoring (i.e. dropping) values is to only us
Both dropping or imputing missing values are likely to cause the calculated sample-sample correlation values to deviate from the real sample-sample correlation values, especially with respect to specific data interpretation perspectives.


![](/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/doc/the_problem.png)<!-- -->
![](/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/docs/the_problem.png)<!-- -->

Figure 1.
Graphical description of the left-censored data problem.
Expand Down
10 changes: 5 additions & 5 deletions docs/supplemental_materials.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: '`r Sys.time()`'
output:
rmarkdown::word_document:
keep_md: true
bibliography: '`r here::here("doc/icikt_references.json")`'
bibliography: '`r here::here("docs/icikt_references.json")`'
csl: plos-computational-biology.csl
editor_options:
chunk_output_type: console
Expand All @@ -16,7 +16,7 @@ targets::tar_source(files = c("./packages.R", "R"))
doc_type = knitr::opts_knit$get("rmarkdown.pandoc.to")
if (doc_type %in% "docx") {
unlink(here::here("doc", "supplemental_materials_files"), recursive = TRUE)
unlink(here::here("docs", "supplemental_materials_files"), recursive = TRUE)
}
supp_figure_count = dn_counter$new("Figure ", "_", "S")
Expand Down Expand Up @@ -784,9 +784,9 @@ Difference of Ad lib feeding in high and low stamina medians and MADs by correl
Abbreviations for different measures and data are: IK: ICI-Kt; IKC: ICI-Kt * Completeness; Kt: Kendall-tau; PB: Pearson Base (raw values); PL: Pearson Log(x); PL1: Pearson Log(x + 1); PN0: Pearson No Zeros.

```{r save_supp_objects}
saveRDS(supp_figure_count, file = here::here("doc/supp_figure_count.rds"))
saveRDS(supp_table_count, file = here::here("doc/supp_table_count.rds"))
save(yeast_table, egfrgenotype_table, adenocarcinoma_table, nsclc_table, ratstamina_table, adenocarcinoma_ratios, file = here::here("doc/supp_stuff.rda"))
saveRDS(supp_figure_count, file = here::here("docs/supp_figure_count.rds"))
saveRDS(supp_table_count, file = here::here("docs/supp_table_count.rds"))
save(yeast_table, egfrgenotype_table, adenocarcinoma_table, nsclc_table, ratstamina_table, adenocarcinoma_ratios, file = here::here("docs/supp_stuff.rda"))
```

## References
Binary file modified docs/supplemental_materials.docx
Binary file not shown.
14 changes: 7 additions & 7 deletions docs/supplemental_materials.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/supplemental_materials.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 'Supplemental Materials'
author: 'Robert M Flight, Praneeth S Bhatt, and Hunter NB Moseley'
date: '2024-01-31 15:03:27.891435'
date: '2024-02-01 08:27:52.604683'
output:
rmarkdown::word_document:
keep_md: true
bibliography: '/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/doc/icikt_references.json'
bibliography: '/home/rmflight/Documents/manuscripts/in_progress/rmflight_ici-kendallt/docs/icikt_references.json'
csl: plos-computational-biology.csl
editor_options:
chunk_output_type: console
Expand Down
1 change: 1 addition & 0 deletions packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ future::plan(multicore)
theme_set(cowplot::theme_cowplot())
paint::mask_print()
tar_option_set(memory = "transient")
options(tflow.report_dir = "docs")

0 comments on commit 06b6985

Please sign in to comment.