forked from lmu-osc/code-publishing
-
Notifications
You must be signed in to change notification settings - Fork 0
Shorten the README chapter #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nicebread
wants to merge
11
commits into
main
Choose a base branch
from
shorten_readme
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
089c82a
Shorten README Chapter; add new in-depth page
nicebread 606dd04
Merge pull request #93 from lmu-osc/main
NeuroShepherd 0394d67
Readd renv
NeuroShepherd d8a93aa
Remove wget nonsense
NeuroShepherd 563d44e
Remove ref to non-existent file
NeuroShepherd 30fea53
Update renv again
NeuroShepherd 62508c7
Fix some links
NeuroShepherd 9f8e3f4
Update citation (#98)
NeuroShepherd a842d18
Use consistent license abbreviations (#97)
NeuroShepherd d439a46
Remove emojis (#95)
NeuroShepherd 379a9df
Merge remote-tracking branch 'upstream/main' into shorten_readme
NeuroShepherd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| --- | ||
| title: "Identify additional system dependencies for the README" | ||
| engine: knitr | ||
| --- | ||
|
|
||
| The specific version of R and the loaded packages is the most crucial information that should go into the README (or that is stored in the `renv` lockfile). Ideally, you list other system dependencies, such as the version of Quarto[^renv-quarto] that you used to render your paper. | ||
|
|
||
| [^renv-quarto]: As of August 2024, a proposal for `renv` to record the version of Quarto | ||
| has not been implemented, see [rstudio/renv#1143](https://github.com/rstudio/renv/issues/1143). | ||
|
|
||
| An overview over the system dependencies of R packages can be created | ||
| using the function `pak::pkg_sysreqs()`. | ||
| In combination with `renv`, we can obtain the system dependencies | ||
| of all R packages the current project directly depends on: | ||
|
|
||
| ```{.r filename="Console"} | ||
| # Find all R package dependencies | ||
| deps <- renv::dependencies()$Package |> | ||
| unique() |> | ||
| pak::pkg_deps(dependencies = NA) |> | ||
| getElement("package") | ||
|
|
||
| # Identify their system dependencies | ||
| pak::pkg_sysreqs(deps) | ||
| ``` | ||
|
|
||
| The output may look like the following: | ||
|
|
||
| ```txt | ||
| ── Install scripts ────────────────── Fedora 40 ── | ||
| dnf install -y make pandoc git | ||
|
|
||
| ── Packages and their system dependencies ──────── | ||
| fs – make | ||
| knitr – pandoc | ||
| remotes – git | ||
| rmarkdown – pandoc | ||
| sass – make | ||
| ``` | ||
|
|
||
| We can see that the programs `make`, `pandoc`, | ||
| and `git` were identified as system dependencies. | ||
| Often, one can obtain their version by running them with the `--version` argument: | ||
|
|
||
| ```{.bash filename="Terminal"} | ||
| make --version | ||
| pandoc --version | ||
| git --version | ||
| ``` | ||
|
|
||
| However, this does not work for all system dependencies. | ||
| Specifically, it does not work for libraries -- software that is not supposed to be run on its own. | ||
| Identifying their version is beyond the scope of this tutorial. | ||
|
|
||
| We also know that we need Quarto to create the PDF, | ||
| so let's find out its version as well: | ||
|
|
||
| ```{.bash filename="Terminal"} | ||
| quarto --version | ||
| ``` | ||
|
|
||
| If you installed `apaquarto` or any other Quarto extension, | ||
| one can query their versions as follows:[^already-included] | ||
|
|
||
| [^already-included]: Luckily, the extensions are included in the project folder, | ||
| so technically their version is already recorded in the project's files. | ||
|
|
||
| ```{.bash filename="Terminal"} | ||
| quarto list extensions | ||
| ``` | ||
|
|
||
| Finally, we know that we installed a $\TeX$ distribution to create the PDF, | ||
| so let's find out its version by running: | ||
|
|
||
| ```{.bash filename="Terminal"} | ||
| quarto check | ||
| ``` | ||
|
|
||
| The output is quite long and it might look slightly different for you, | ||
| but the relevant sections are the following: | ||
|
|
||
| ```txt | ||
| [✓] Checking tools....................OK | ||
| TinyTeX: v2024.09 | ||
| Chromium: (not installed) | ||
|
|
||
| [✓] Checking LaTeX....................OK | ||
| Using: TinyTex | ||
| Path: /home/r155953/.TinyTeX/bin/x86_64-linux | ||
| Version: 2024 | ||
| ``` | ||
|
|
||
| Add these dependencies to the section **Computational Requirements / Dependencies** of your README file. | ||
|
|
||
| Of course, all the system dependencies identified until now | ||
| may have dependencies on their own. Use your own judgement to decide when not to dig deeper. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd favor no emojis