Skip to content

Commit 9030059

Browse files
committed
Deploying to website from @ dafa1d2 🚀
1 parent b063002 commit 9030059

19 files changed

Lines changed: 328 additions & 89 deletions

reference/add.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,10 @@ <h2 class="anchored" data-anchor-id="options">Options</h2>
619619
<dd>
620620
Print help (see a summary with ‘-h’)
621621
</dd>
622+
<dt><code>--no-cache</code></dt>
623+
<dd>
624+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
625+
</dd>
622626
<dt><code>--pak-version &lt;pak-version&gt;</code></dt>
623627
<dd>
624628
pak version to install.

reference/available.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,10 @@ <h2 class="anchored" data-anchor-id="options">Options</h2>
576576
<dd>
577577
List available Rtools versions instead of R versions.
578578
</dd>
579+
<dt><code>--no-cache</code></dt>
580+
<dd>
581+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
582+
</dd>
579583
<dt><code>--platform &lt;platform&gt;</code></dt>
580584
<dd>
581585
Use this platform, instead of auto-detecting it.

reference/config.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ <h2 class="anchored" data-anchor-id="configuration-entries">Configuration entrie
565565
<li><p><code>r-install-dir</code> (<code>RIG_R_INSTALL_DIR</code>): the root directory of the R installations, i.e.&nbsp;the directory that holds the directories of the individual R versions. Defaults to the platform’s system-wide location in admin mode (<code>/opt/R</code> on Linux, <code>/Library/Frameworks/R.framework</code> on macOS, <code>C:\Program Files\R</code> on Windows), and to <code>~/.local/share/rig/r</code> (<code>%APPDATA%\rig\data\r</code> on Windows) in user mode. On Windows this entry only applies in user mode; the admin-mode root is fixed, because it also depends on the architecture.</p></li>
566566
<li><p><code>rtools-install-dir</code> (<code>RIG_RTOOLS_INSTALL_DIR</code>): Windows only, the directory that holds the Rtools installations. Defaults to <code>C:\</code> in admin mode (so Rtools 4.5 goes into <code>C:\rtools45</code>) and to <code>%APPDATA%\rig\data\rtools</code> in user mode.</p></li>
567567
<li><p><code>download-dir</code> (<code>RIG_DOWNLOAD_DIR</code>): the directory rig downloads the R (and on Windows the Rtools) installers into, before installing them. Defaults to <code>rig-&lt;uid&gt;</code> in the system temporary directory, e.g.&nbsp;<code>/tmp/rig-1000</code>, and to <code>rig</code> under <code>%TEMP%</code> on Windows. The user id is part of the default name on purpose: in <a href="../admin-vs-user-mode.html">admin mode</a> rig downloads as <code>root</code>, in user mode as you, and a directory shared between them would only be writable by whoever created it first. For the same reason rig refuses to use the default directory if it is a symbolic link, or if it is owned by another user, or if other users can write into it. A directory you configure here is created but not checked.</p></li>
568+
<li><p><code>no-cache</code> (<code>RIG_NO_CACHE</code>): set it to <code>true</code> to stop rig from using its cache, the same as passing <code>--no-cache</code>. rig then neither reads nor writes the cache directory: it downloads the repository metadata, the binary package indices and the package files again, compiles a source package instead of unpacking a build it made earlier, and downloads an R or Rtools installer again instead of reusing the one in the download directory. What it downloads and builds goes into a temporary directory that is removed when rig exits, so the cache is left exactly as it was. Defaults to <code>false</code>. This is meant for debugging and for the occasional run that must not trust anything cached; it makes rig considerably slower, so it is a poor thing to turn on permanently.</p></li>
568569
<li><p><code>positron-setup</code>: <a href="../admin-vs-user-mode.html">user mode</a> only. Set it to <code>false</code> to stop rig from updating Positron’s settings: adding its R installation root to <code>positron.r.customRootFolders</code>, and pointing <code>positron.r.interpreters.default</code> at the <a href="../reference/default.html">default</a> R version. Any other value, and the default, keep the Positron setup on.</p></li>
569570
<li><p><code>userlibrary</code>: a JSON object that maps R versions to user library paths. rig maintains this entry itself, as a cache for the <code>rig library</code> commands; you don’t normally need to edit or set it.</p></li>
570571
</ul>
@@ -610,6 +611,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
610611
<dd>
611612
Print help (see a summary with ‘-h’)
612613
</dd>
614+
<dt><code>--no-cache</code></dt>
615+
<dd>
616+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
617+
</dd>
613618
<dt><code>--user</code></dt>
614619
<dd>
615620
Run in user mode (overrides RIG_MODE and config)
@@ -649,6 +654,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
649654
<dd>
650655
JSON output
651656
</dd>
657+
<dt><code>--no-cache</code></dt>
658+
<dd>
659+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
660+
</dd>
652661
<dt><code>--user</code></dt>
653662
<dd>
654663
Run in user mode (overrides RIG_MODE and config)
@@ -679,6 +688,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
679688
<dd>
680689
JSON output
681690
</dd>
691+
<dt><code>--no-cache</code></dt>
692+
<dd>
693+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
694+
</dd>
682695
<dt><code>--user</code></dt>
683696
<dd>
684697
Run in user mode (overrides RIG_MODE and config)
@@ -714,6 +727,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
714727
<dd>
715728
Print help (see a summary with ‘-h’)
716729
</dd>
730+
<dt><code>--no-cache</code></dt>
731+
<dd>
732+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
733+
</dd>
717734
<dt><code>--user</code></dt>
718735
<dd>
719736
Run in user mode (overrides RIG_MODE and config)

reference/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,10 @@ <h2 class="anchored" data-anchor-id="options">Options</h2>
604604
<dd>
605605
JSON output
606606
</dd>
607+
<dt><code>--no-cache</code></dt>
608+
<dd>
609+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
610+
</dd>
607611
<dt><code>--user</code></dt>
608612
<dd>
609613
Run in user mode (overrides RIG_MODE and config)

reference/library.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
616616
<dd>
617617
Print help (see a summary with ‘-h’)
618618
</dd>
619+
<dt><code>--no-cache</code></dt>
620+
<dd>
621+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
622+
</dd>
619623
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
620624
<dd>
621625
R version to operate on, instead of the default
@@ -660,6 +664,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
660664
<dd>
661665
JSON output
662666
</dd>
667+
<dt><code>--no-cache</code></dt>
668+
<dd>
669+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
670+
</dd>
663671
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
664672
<dd>
665673
R version to operate on, instead of the default
@@ -696,6 +704,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
696704
<dd>
697705
JSON output
698706
</dd>
707+
<dt><code>--no-cache</code></dt>
708+
<dd>
709+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
710+
</dd>
699711
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
700712
<dd>
701713
R version to operate on, instead of the default
@@ -736,6 +748,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
736748
<dd>
737749
Print help (see a summary with ‘-h’)
738750
</dd>
751+
<dt><code>--no-cache</code></dt>
752+
<dd>
753+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
754+
</dd>
739755
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
740756
<dd>
741757
R version to operate on, instead of the default

reference/list.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ <h2 class="anchored" data-anchor-id="options">Options</h2>
554554
<dd>
555555
JSON output
556556
</dd>
557+
<dt><code>--no-cache</code></dt>
558+
<dd>
559+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
560+
</dd>
557561
<dt><code>--plain</code></dt>
558562
<dd>
559563
plain output, only the version names, one per line

reference/pkg.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
645645
<dd>
646646
JSON output
647647
</dd>
648+
<dt><code>--no-cache</code></dt>
649+
<dd>
650+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
651+
</dd>
648652
<dt><code>--pkg-type &lt;pkg-type&gt;</code></dt>
649653
<dd>
650654
Type of packages to list (e.g.&nbsp;source, binary)
@@ -712,6 +716,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
712716
<dd>
713717
JSON output
714718
</dd>
719+
<dt><code>--no-cache</code></dt>
720+
<dd>
721+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
722+
</dd>
715723
<dt><code>-r, --recursive</code></dt>
716724
<dd>
717725
Show recursive (transitive) dependencies
@@ -772,6 +780,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
772780
<dd>
773781
JSON output
774782
</dd>
783+
<dt><code>--no-cache</code></dt>
784+
<dd>
785+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
786+
</dd>
775787
<dt><code>--readme</code></dt>
776788
<dd>
777789
Show the README of the package, instead of its metadata
@@ -819,6 +831,7 @@ <h3 class="anchored" data-anchor-id="binary-and-source-packages">Binary and sour
819831
<h3 class="anchored" data-anchor-id="packages-rig-builds-itself">Packages rig builds itself</h3>
820832
<p>Compiling a package produces exactly what a repository would have served as a binary package, so rig keeps it: a source install is archived into the cache, with the same file name <code>R CMD INSTALL --build</code> would have given it, and installing that package again unpacks the archive instead of compiling it a second time. That covers another library, another project, and <code>--reinstall</code>, which reinstalls a package but does not recompile it.</p>
821833
<p>A cache entry belongs to one platform, one R minor version, one source tarball, one set of versions of the packages it is compiled against, and one set of <code>~/.R/Makevars</code> files. Change any of those and the package is compiled again. What it does <em>not</em> cover is your compiler, the system libraries the package found when it was configured, and the arguments it was configured with; a machine whose toolchain changed under it can hold an entry that no longer matches, and the way out is to delete it. <code>rig system dirs --cache</code> says where the cache is.</p>
834+
<p><code>--no-cache</code> turns all of this off for one run: rig then downloads the repository metadata and the package files again, compiles every source package rather than unpacking one it built earlier, and adds nothing to the cache. See <a href="../reference/config.html"><code>rig config</code></a>.</p>
822835
</section>
823836
<section id="what-gets-skipped" class="level3">
824837
<h3 class="anchored" data-anchor-id="what-gets-skipped">What gets skipped</h3>
@@ -881,6 +894,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
881894
<dd>
882895
Library name or path, instead of the default library
883896
</dd>
897+
<dt><code>--no-cache</code></dt>
898+
<dd>
899+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
900+
</dd>
884901
<dt><code>--platform &lt;platform&gt;</code></dt>
885902
<dd>
886903
Platform to install binary packages for, e.g.&nbsp;macos, windows, ubuntu-24.04, or a full platform string like aarch64-unknown-linux-gnu-ubuntu-24.04 (default: this machine). Use <code>--platform</code> source to install source packages only.
@@ -952,6 +969,10 @@ <h3 class="anchored" data-anchor-id="options-4">Options</h3>
952969
<dd>
953970
Library name or path, instead of the default library
954971
</dd>
972+
<dt><code>--no-cache</code></dt>
973+
<dd>
974+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
975+
</dd>
955976
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
956977
<dd>
957978
R version to operate on, instead of the default
@@ -1021,6 +1042,10 @@ <h3 class="anchored" data-anchor-id="options-5">Options</h3>
10211042
<dd>
10221043
Library name or path, instead of the default library
10231044
</dd>
1045+
<dt><code>--no-cache</code></dt>
1046+
<dd>
1047+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
1048+
</dd>
10241049
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
10251050
<dd>
10261051
R version to operate on, instead of the default
@@ -1113,6 +1138,10 @@ <h3 class="anchored" data-anchor-id="options-6">Options</h3>
11131138
<dd>
11141139
Leave out R and the base packages
11151140
</dd>
1141+
<dt><code>--no-cache</code></dt>
1142+
<dd>
1143+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
1144+
</dd>
11161145
<dt><code>--user</code></dt>
11171146
<dd>
11181147
Run in user mode (overrides RIG_MODE and config)

reference/ppm.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
675675
<dd>
676676
JSON output
677677
</dd>
678+
<dt><code>--no-cache</code></dt>
679+
<dd>
680+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
681+
</dd>
678682
<dt><code>--user</code></dt>
679683
<dd>
680684
Run in user mode (overrides RIG_MODE and config)
@@ -738,6 +742,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
738742
<dd>
739743
JSON output
740744
</dd>
745+
<dt><code>--no-cache</code></dt>
746+
<dd>
747+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
748+
</dd>
741749
<dt><code>--user</code></dt>
742750
<dd>
743751
Run in user mode (overrides RIG_MODE and config)
@@ -769,6 +777,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
769777
<dd>
770778
JSON output
771779
</dd>
780+
<dt><code>--no-cache</code></dt>
781+
<dd>
782+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
783+
</dd>
772784
<dt><code>--user</code></dt>
773785
<dd>
774786
Run in user mode (overrides RIG_MODE and config)
@@ -815,6 +827,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
815827
<dd>
816828
JSON output
817829
</dd>
830+
<dt><code>--no-cache</code></dt>
831+
<dd>
832+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
833+
</dd>
818834
<dt><code>--user</code></dt>
819835
<dd>
820836
Run in user mode (overrides RIG_MODE and config)
@@ -856,6 +872,10 @@ <h3 class="anchored" data-anchor-id="options-4">Options</h3>
856872
<dd>
857873
JSON output
858874
</dd>
875+
<dt><code>--no-cache</code></dt>
876+
<dd>
877+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
878+
</dd>
859879
<dt><code>--user</code></dt>
860880
<dd>
861881
Run in user mode (overrides RIG_MODE and config)

reference/proj.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
642642
<dd>
643643
Maximum number of concurrent installations (default: 4)
644644
</dd>
645+
<dt><code>--no-cache</code></dt>
646+
<dd>
647+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
648+
</dd>
645649
<dt><code>--r-binary &lt;r-binary&gt;</code></dt>
646650
<dd>
647651
Path to R binary (default: R)
@@ -692,6 +696,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
692696
<dd>
693697
JSON output
694698
</dd>
699+
<dt><code>--no-cache</code></dt>
700+
<dd>
701+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
702+
</dd>
695703
<dt><code>-r, --recursive</code></dt>
696704
<dd>
697705
Show recursive (transitive) dependencies
@@ -716,6 +724,7 @@ <h3 class="anchored" data-anchor-id="source-and-binary-packages">Source and bina
716724
<p>By default rig solves for the machine it runs on. Use <code>--platform</code> to solve for a different one, e.g.&nbsp;to write a lockfile on macOS for a Linux deployment:</p>
717725
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">rig</span> proj solve <span class="at">--platform</span> ubuntu-24.04</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
718726
<p><code>--platform source</code> solves for source packages only, and does not download any binary package metadata. rig also falls back to source packages when there are no binaries for a platform at all. There is then nothing for <code>--prefer-binary</code> to prefer, and rig ignores it.</p>
727+
<p>rig keeps the repository metadata and the binary package indices it solves from in its cache, and refreshes them once a day. <code>--no-cache</code> downloads them again instead, and writes nothing to the cache, which is the way to solve against a package that was published minutes ago. It is a good deal slower, because the metadata it re-downloads is large. See <a href="../reference/config.html"><code>rig config</code></a>.</p>
719728
<p>The <code>pkg.lock</code> file records, for every package, whether it is a source or a binary package and the URL it is downloaded from. It also records where the file is cached, which is per <em>build</em> rather than per version: a repository can offer several binaries of one version for one platform and R version, and they are cached side by side.</p>
720729
</section>
721730
<section id="usage-2" class="level3">
@@ -745,6 +754,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
745754
<dd>
746755
JSON output
747756
</dd>
757+
<dt><code>--no-cache</code></dt>
758+
<dd>
759+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
760+
</dd>
748761
<dt><code>--platform &lt;platform&gt;</code></dt>
749762
<dd>
750763
Platform to solve binary packages for, e.g.&nbsp;macos, windows, ubuntu-24.04, or a full platform string like aarch64-unknown-linux-gnu-ubuntu-24.04 (default: this machine). Use <code>--platform</code> source to solve for source packages only.
@@ -822,6 +835,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
822835
<dd>
823836
Leave out R and the base packages
824837
</dd>
838+
<dt><code>--no-cache</code></dt>
839+
<dd>
840+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
841+
</dd>
825842
<dt><code>--user</code></dt>
826843
<dd>
827844
Run in user mode (overrides RIG_MODE and config)

reference/repos.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ <h3 class="anchored" data-anchor-id="options">Options</h3>
648648
<dd>
649649
JSON output
650650
</dd>
651+
<dt><code>--no-cache</code></dt>
652+
<dd>
653+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
654+
</dd>
651655
<dt><code>--user</code></dt>
652656
<dd>
653657
Run in user mode (overrides RIG_MODE and config)
@@ -689,6 +693,10 @@ <h3 class="anchored" data-anchor-id="options-1">Options</h3>
689693
<dd>
690694
JSON output
691695
</dd>
696+
<dt><code>--no-cache</code></dt>
697+
<dd>
698+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
699+
</dd>
692700
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
693701
<dd>
694702
R version to list repositories for, instead of the default
@@ -723,6 +731,10 @@ <h3 class="anchored" data-anchor-id="options-2">Options</h3>
723731
<dd>
724732
Print help (see a summary with ‘-h’)
725733
</dd>
734+
<dt><code>--no-cache</code></dt>
735+
<dd>
736+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
737+
</dd>
726738
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
727739
<dd>
728740
R version to set up repositories for (default: all)
@@ -782,6 +794,10 @@ <h3 class="anchored" data-anchor-id="options-3">Options</h3>
782794
<dd>
783795
JSON output
784796
</dd>
797+
<dt><code>--no-cache</code></dt>
798+
<dd>
799+
Do not read or write rig’s cache (overrides RIG_NO_CACHE and config)
800+
</dd>
785801
<dt><code>-r, --r-version &lt;r-version&gt;</code></dt>
786802
<dd>
787803
R version to check repositories for, instead of the default

0 commit comments

Comments
 (0)