Skip to content

Commit 36267c7

Browse files
ddsjoberggithub-actions
authored andcommitted
[actions skip] Built site for crane@8888fe702ee77160a79870eca9933cef9f70e85c
1 parent f5ace41 commit 36267c7

18 files changed

Lines changed: 1013 additions & 298 deletions

main/404.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>
2-
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
2+
<!-- Generated by pkgdown + https://github.com/insightsengineering/r-pkgdown-multiversion -->
3+
<html lang="en">
34
<head>
45
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
56
<meta charset="utf-8">
@@ -34,7 +35,13 @@
3435
<li class="nav-item"><a class="nav-link" href="https://insightsengineering.github.io/crane/articles/crane.html">Get started</a></li>
3536
<li class="nav-item"><a class="nav-link" href="https://insightsengineering.github.io/crane/reference/index.html">Reference</a></li>
3637
<li class="nav-item"><a class="nav-link" href="https://insightsengineering.github.io/crane/news/index.html">Changelog</a></li>
37-
</ul>
38+
<div><li class="nav-item dropdown">
39+
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-versions">Versions</a>
40+
<div class="dropdown-menu" aria-labelledby="dropdown-versions">
41+
<a class="dropdown-item" data-toggle="tooltip" title="" href="https://insightsengineering.github.io/crane/main">main</a>
42+
</div>
43+
</li></div>
44+
</ul>
3845
<ul class="navbar-nav">
3946
<li class="nav-item"><form class="form-inline" role="search">
4047
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json">

main/CONTRIBUTING.html

Lines changed: 68 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
<!DOCTYPE html>
2-
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Contributing to crane • crane</title><script src="deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="deps/headroom-0.11.0/headroom.min.js"></script><script src="deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="deps/search-1.0.0/fuse.min.js"></script><script src="deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="Contributing to crane"><link rel="stylesheet" href="consent.css"><script src="consent.js" type="text/javascript" charset="utf-8"></script></head><body>
2+
<!-- Generated by pkgdown + https://github.com/insightsengineering/r-pkgdown-multiversion -->
3+
<html lang="en">
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
9+
<title>Contributing to crane • crane</title>
10+
<script src="deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
11+
<link href="deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet">
12+
<script src="deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet">
13+
<link href="deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet">
14+
<script src="deps/headroom-0.11.0/headroom.min.js"></script><script src="deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="deps/search-1.0.0/fuse.min.js"></script><script src="deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="Contributing to crane">
15+
<link rel="stylesheet" href="consent.css">
16+
<script src="consent.js" type="text/javascript" charset="utf-8"></script>
17+
</head>
18+
<body>
319
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
420

521

@@ -15,13 +31,24 @@
1531
</button>
1632

1733
<div id="navbar" class="collapse navbar-collapse ms-3">
18-
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="articles/crane.html">Get started</a></li>
34+
<ul class="navbar-nav me-auto">
35+
<li class="nav-item"><a class="nav-link" href="articles/crane.html">Get started</a></li>
1936
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
2037
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>
21-
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
22-
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li>
38+
<div><li class="nav-item dropdown">
39+
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-versions">Versions</a>
40+
<div class="dropdown-menu" aria-labelledby="dropdown-versions">
41+
<a class="dropdown-item" data-toggle="tooltip" title="" href="https://insightsengineering.github.io/crane/main">main</a>
42+
</div>
43+
</li></div>
44+
</ul>
45+
<ul class="navbar-nav">
46+
<li class="nav-item"><form class="form-inline" role="search">
47+
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json">
48+
</form></li>
2349
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/insightsengineering/crane/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
24-
</ul></div>
50+
</ul>
51+
</div>
2552

2653

2754
</div>
@@ -37,40 +64,52 @@ <h1>Contributing to crane</h1>
3764

3865
<p>This outlines how to propose a change to {crane}.</p>
3966
<div class="section level2">
40-
<h2 id="fixing-typos">Fixing typos<a class="anchor" aria-label="anchor" href="#fixing-typos"></a></h2>
67+
<h2 id="fixing-typos">Fixing typos<a class="anchor" aria-label="anchor" href="#fixing-typos"></a>
68+
</h2>
4169
<p>You can fix typos, spelling mistakes, or grammatical errors in the documentation directly using the GitHub web interface, as long as the changes are made in the <em>source</em> file. This generally means you’ll need to edit <a href="https://roxygen2.r-lib.org/articles/roxygen2.html" class="external-link">roxygen2 comments</a> in an <code>.R</code>, not a <code>.Rd</code> file. You can find the <code>.R</code> file that generates the <code>.Rd</code> by reading the comment in the first line.</p>
4270
</div>
4371
<div class="section level2">
44-
<h2 id="bigger-changes">Bigger changes<a class="anchor" aria-label="anchor" href="#bigger-changes"></a></h2>
72+
<h2 id="bigger-changes">Bigger changes<a class="anchor" aria-label="anchor" href="#bigger-changes"></a>
73+
</h2>
4574
<p>If you want to make a bigger change, it’s a good idea to first file an issue and make sure someone from the team agrees that it’s needed. If you’ve found a bug, please file an issue that illustrates the bug with a minimal <a href="https://www.tidyverse.org/help/#reprex" class="external-link">reprex</a> (this will also help you write a unit test, if needed). See guide on <a href="https://code-review.tidyverse.org/issues/" class="external-link">how to create a great issue</a> for more advice.</p>
4675
<div class="section level3">
47-
<h3 id="pull-request-process">Pull request process<a class="anchor" aria-label="anchor" href="#pull-request-process"></a></h3>
48-
<ul><li><p>Fork the package and clone onto your computer.</p></li>
76+
<h3 id="pull-request-process">Pull request process<a class="anchor" aria-label="anchor" href="#pull-request-process"></a>
77+
</h3>
78+
<ul>
79+
<li><p>Fork the package and clone onto your computer.</p></li>
4980
<li><p>Install all development dependencies with <code><a href="https://devtools.r-lib.org/reference/install_deps.html" class="external-link">devtools::install_dev_deps()</a></code>, and then make sure the package passes R CMD check by running <code><a href="https://devtools.r-lib.org/reference/check.html" class="external-link">devtools::check()</a></code>. If R CMD check doesn’t pass cleanly, it’s a good idea to ask for help before continuing.</p></li>
5081
<li><p>Create a Git branch for your pull request (PR).</p></li>
5182
<li><p>Make your changes, commit to git, and then create a PR. The title of your PR should briefly describe the change. The body of your PR should contain <code>Closes #issue-number</code>.</p></li>
5283
<li><p>For user-facing changes, add a bullet to the top of <code>NEWS.md</code> (i.e. just below the first header). Follow the style described in <a href="https://style.tidyverse.org/news.html" class="external-link uri">https://style.tidyverse.org/news.html</a>.</p></li>
53-
</ul></div>
84+
</ul>
85+
</div>
5486
<div class="section level3">
55-
<h3 id="code-style">Code Style<a class="anchor" aria-label="anchor" href="#code-style"></a></h3>
56-
<ul><li><p>New code should follow the tidyverse <a href="https://style.tidyverse.org" class="external-link">style guide</a>. You can use the <a href="https://CRAN.R-project.org/package=styler" class="external-link">styler</a> package to apply these styles, but please don’t restyle code that has nothing to do with your PR.</p></li>
87+
<h3 id="code-style">Code Style<a class="anchor" aria-label="anchor" href="#code-style"></a>
88+
</h3>
89+
<ul>
90+
<li><p>New code should follow the tidyverse <a href="https://style.tidyverse.org" class="external-link">style guide</a>. You can use the <a href="https://CRAN.R-project.org/package=styler" class="external-link">styler</a> package to apply these styles, but please don’t restyle code that has nothing to do with your PR.</p></li>
5791
<li><p>We use <a href="https://cran.r-project.org/package=roxygen2" class="external-link">roxygen2</a>, with <a href="https://cran.r-project.org/web/packages/roxygen2/vignettes/rd-formatting.html" class="external-link">Markdown syntax</a>, for documentation.</p></li>
5892
<li><p>We use <a href="https://cran.r-project.org/package=testthat" class="external-link">testthat</a> for unit tests. Contributions with test cases included are easier to accept.</p></li>
5993
<li><p>All helper/non-exported function are named with a period prefix, e.g. <code>.helper_function()</code>.</p></li>
6094
<li><p>All helper/non-exported functions are documented with roxygen2 as indicated above. Include <code>#' @keywords internal</code> to mark the function as internal. Any helper functions that appear in examples, will need to use the <code>crane:::</code> prefix, e.g. <code>#' @example crane:::.helper_function()</code></p></li>
61-
</ul></div>
95+
</ul>
96+
</div>
6297
<div class="section level3">
63-
<h3 id="error-handling">Error Handling<a class="anchor" aria-label="anchor" href="#error-handling"></a></h3>
98+
<h3 id="error-handling">Error Handling<a class="anchor" aria-label="anchor" href="#error-handling"></a>
99+
</h3>
64100
<p>We use the {cli} package to signal errors, warnings, and messages to users. For each call to <code><a href="https://cli.r-lib.org/reference/cli_abort.html" class="external-link">cli::cli_abort()</a></code>, the <code>call</code> argument must be used to correctly message to users the calling function. Any general function that can be re-used to check, for example, user-passed argument values, shall be placed in <code>R\import-standalone-checks.R</code>. The checks in this file are re-used among multiple projects. If you do need to modify this file, please review the section below about standalone scripts.</p>
65101
</div>
66102
<div class="section level3">
67-
<h3 id="package-dependencies">Package Dependencies<a class="anchor" aria-label="anchor" href="#package-dependencies"></a></h3>
103+
<h3 id="package-dependencies">Package Dependencies<a class="anchor" aria-label="anchor" href="#package-dependencies"></a>
104+
</h3>
68105
<p>Generally, no additional package dependencies may be added. If the code you add would be more readable using, for example, using a {tidyverse} function, consider adding a shim for the function in one of the standalone scripts. See the section below about standalone scripts for details.</p>
69106
</div>
70107
<div class="section level3">
71-
<h3 id="standalone-scripts">Standalone Scripts<a class="anchor" aria-label="anchor" href="#standalone-scripts"></a></h3>
108+
<h3 id="standalone-scripts">Standalone Scripts<a class="anchor" aria-label="anchor" href="#standalone-scripts"></a>
109+
</h3>
72110
<p>The package utilizes a few standalone scripts that are used across a few projects. Some of these scripts make available shims for common tidyverse functions, so you can use the function without depending on the package. The <code>"checks"</code> script is a series of functions to check the argument values supplied by users, and provides informative error messages when the values are not valid. Do not make changes to these files directly: rather, update these files in their source location.</p>
73-
<ul><li>
111+
<ul>
112+
<li>
74113
<code>import-standalone-purrr.R</code>: <a href="https://github.com/r-lib/rlang/blob/main/R/standalone-purrr.R" class="external-link uri">https://github.com/r-lib/rlang/blob/main/R/standalone-purrr.R</a>
75114
</li>
76115
<li>
@@ -82,7 +121,8 @@ <h3 id="standalone-scripts">Standalone Scripts<a class="anchor" aria-label="anch
82121
<li>
83122
<code>import-standalone-checks.R</code> <a href="https://github.com/insightsengineering/standalone/blob/main/R/standalone-checks.R" class="external-link uri">https://github.com/insightsengineering/standalone/blob/main/R/standalone-checks.R</a>
84123
</li>
85-
</ul><p>After the update has been made, you can copy the file into the repo with</p>
124+
</ul>
125+
<p>After the update has been made, you can copy the file into the repo with</p>
86126
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
87127
<code class="sourceCode R"><span><span class="fu">usethis</span><span class="fu">::</span><span class="fu"><a href="https://usethis.r-lib.org/reference/use_standalone.html" class="external-link">use_standalone</a></span><span class="op">(</span><span class="st">"r-lib/rlang"</span>, file <span class="op">=</span> <span class="st">"purrr"</span><span class="op">)</span></span>
88128
<span><span class="fu">usethis</span><span class="fu">::</span><span class="fu"><a href="https://usethis.r-lib.org/reference/use_standalone.html" class="external-link">use_standalone</a></span><span class="op">(</span><span class="st">"insightsengineering/standalone"</span>, file <span class="op">=</span> <span class="st">"forcats"</span><span class="op">)</span></span>
@@ -91,27 +131,31 @@ <h3 id="standalone-scripts">Standalone Scripts<a class="anchor" aria-label="anch
91131
</div>
92132
</div>
93133
<div class="section level2">
94-
<h2 id="scope">Scope<a class="anchor" aria-label="anchor" href="#scope"></a></h2>
134+
<h2 id="scope">Scope<a class="anchor" aria-label="anchor" href="#scope"></a>
135+
</h2>
95136
<p>The {crane} package exports basic functions for styling ARDs and tables using the Roche theme.</p>
96137
</div>
97138
<div class="section level2">
98-
<h2 id="code-of-conduct">Code of Conduct<a class="anchor" aria-label="anchor" href="#code-of-conduct"></a></h2>
139+
<h2 id="code-of-conduct">Code of Conduct<a class="anchor" aria-label="anchor" href="#code-of-conduct"></a>
140+
</h2>
99141
<p>Please note that crane is released with a <a href="CODE_OF_CONDUCT.html">Contributor Code of Conduct</a>. By contributing to this project you agree to abide by its terms.</p>
100142
</div>
101143
</div>
102144

103145
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
104-
</nav></aside></div>
146+
</nav></aside>
147+
</div>
105148

106149

107150
<footer><div class="nest">
108151
<p>crane is a part of the <strong>NEST</strong> and <a href="https://pharmaverse.org/" class="external-link"><strong>pharmaverse</strong></a>.</p>
109152
</div>
110-
<script type="text/javascript" src="analytics.js"></script></footer></div>
111-
153+
<script type="text/javascript" src="analytics.js"></script></footer>
154+
</div>
112155

113156

114157

115158

116-
</body></html>
117159

160+
</body>
161+
</html>

0 commit comments

Comments
 (0)