mirror of
https://github.com/msberends/AMR.git
synced 2026-11-28 23:26:11 +01:00
181 lines
11 KiB
HTML
181 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
|
|
<head>
|
|
<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>AMR for R Assistant • AMR (for R)</title>
|
|
<!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png">
|
|
<link rel="icon" type="”image/svg+xml”" href="../favicon.svg">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png">
|
|
<link rel="icon" sizes="any" href="../favicon.ico">
|
|
<link rel="manifest" href="../site.webmanifest">
|
|
<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.8/bootstrap.min.css" rel="stylesheet">
|
|
<script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet">
|
|
<link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet">
|
|
<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><link href="../extra.css" rel="stylesheet">
|
|
<script src="../extra.js"></script><meta property="og:title" content="AMR for R Assistant">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
|
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
|
</head>
|
|
<body>
|
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
|
|
|
|
<nav class="navbar navbar-expand-lg fixed-top bg-primary" data-bs-theme="dark" aria-label="Site navigation"><div class="container">
|
|
|
|
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
|
|
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9024</small>
|
|
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
|
<ul class="navbar-nav me-auto">
|
|
<li class="nav-item dropdown">
|
|
<button class="nav-link dropdown-toggle" type="button" id="dropdown-how-to" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true"><span class="fa fa-question-circle"></span> How to</button>
|
|
<ul class="dropdown-menu" aria-labelledby="dropdown-how-to">
|
|
<li><a class="dropdown-item" href="../articles/AMR.html"><span class="fa fa-directions"></span> Conduct AMR Analysis</a></li>
|
|
<li><a class="dropdown-item" href="../reference/antibiogram.html"><span class="fa fa-file-prescription"></span> Generate Antibiogram (Trad./Syndromic/WISCA)</a></li>
|
|
<li><a class="dropdown-item" href="../articles/AMR_with_tidymodels.html"><span class="fa fa-square-root-variable"></span> Use AMR for Predictive Modelling (tidymodels)</a></li>
|
|
<li><a class="dropdown-item" href="../articles/datasets.html"><span class="fa fa-database"></span> Download Data Sets for Own Use</a></li>
|
|
<li><a class="dropdown-item" href="../reference/AMR-options.html"><span class="fa fa-gear"></span> Set User- Or Team-specific Package Settings</a></li>
|
|
<li><a class="dropdown-item" href="../articles/PCA.html"><span class="fa fa-compress"></span> Conduct Principal Component Analysis for AMR</a></li>
|
|
<li><a class="dropdown-item" href="../reference/mdro.html"><span class="fa fa-skull-crossbones"></span> Determine Multi-Drug Resistance (MDR)</a></li>
|
|
<li><a class="dropdown-item" href="../articles/WHONET.html"><span class="fa fa-globe-americas"></span> Work with WHONET Data</a></li>
|
|
<li><a class="dropdown-item" href="../articles/EUCAST.html"><span class="fa fa-exchange-alt"></span> Apply EUCAST Rules</a></li>
|
|
<li><a class="dropdown-item" href="../reference/mo_property.html"><span class="fa fa-bug"></span> Get Taxonomy of a Microorganism</a></li>
|
|
<li><a class="dropdown-item" href="../reference/ab_property.html"><span class="fa fa-capsules"></span> Get Properties of an Antibiotic Drug</a></li>
|
|
<li><a class="dropdown-item" href="../reference/av_property.html"><span class="fa fa-capsules"></span> Get Properties of an Antiviral Drug</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="active nav-item"><a class="nav-link" href="../articles/chat.html"><span class="fa fa-wand-magic-sparkles"></span> AMR for R Assistant</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="../reference/index.html"><span class="fa fa-book-open"></span> Manual</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="../authors.html"><span class="fa fa-users"></span> Authors</a></li>
|
|
</ul>
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item"><form class="form-inline" role="search">
|
|
<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>
|
|
<li class="nav-item"><a class="nav-link" href="../news/index.html"><span class="fa fa-newspaper"></span> Changelog</a></li>
|
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/msberends/AMR"><span class="fa fa-github"></span> Source Code</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</nav><div class="container template-article">
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
<main id="main" class="col-md-9"><div class="page-header">
|
|
<img src="../logo.svg" class="logo" alt=""><h1>AMR for R Assistant</h1>
|
|
|
|
|
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/vignettes/chat.Rmd" class="external-link"><code>vignettes/chat.Rmd</code></a></small>
|
|
<div class="d-none name"><code>chat.Rmd</code></div>
|
|
</div>
|
|
|
|
|
|
|
|
<p>The AMR for R Assistant answers your questions about the
|
|
<code>AMR</code> package in a general AI chat service, Claude (by
|
|
Anthropic) or ChatGPT (by OpenAI). It instructs the AI to base its
|
|
answers on the official documentation on this website, and on the
|
|
documentation of the exact package version that you have installed.</p>
|
|
<div class="section level2">
|
|
<h2 id="ask-a-question">Ask a question<a class="anchor" aria-label="anchor" href="#ask-a-question"></a>
|
|
</h2>
|
|
<ol style="list-style-type: decimal">
|
|
<li>Choose a chat service below. It opens in a new tab, with the
|
|
instructions for the assistant already filled in.</li>
|
|
<li>Type your question below the instructions, preferably with your
|
|
package version, which is the output of
|
|
<code>packageVersion("AMR")</code> in R.</li>
|
|
<li>Send the message.</li>
|
|
</ol>
|
|
<div class="amr-assistant-buttons">
|
|
<a class="external-link btn btn-primary" target="_blank" rel="noopener" data-amr-assistant="claude" href="https://claude.ai">Ask Claude</a>
|
|
<a class="external-link btn btn-primary" target="_blank" rel="noopener" data-amr-assistant="chatgpt" href="https://chatgpt.com">Ask ChatGPT</a>
|
|
<button class="btn btn-outline-primary" type="button" id="amr-assistant-copy">Copy instructions for another AI</button>
|
|
</div>
|
|
</div>
|
|
<div class="section level2">
|
|
<h2 id="good-to-know">Good to know<a class="anchor" aria-label="anchor" href="#good-to-know"></a>
|
|
</h2>
|
|
<ul>
|
|
<li>
|
|
<strong>Check every answer.</strong> An AI can make mistakes, also
|
|
with these instructions. Verify the code and its results before you rely
|
|
on them.</li>
|
|
<li>
|
|
<strong>Never enter patient-identifiable data</strong> into a chat
|
|
service.</li>
|
|
<li>
|
|
<strong>An account may be needed.</strong> The chat service must be
|
|
able to read web pages for the assistant to work. Whether this requires
|
|
an account, or a paid plan, depends on the service.</li>
|
|
<li>
|
|
<strong>Claude shows a caution message</strong> for chats that open
|
|
with filled-in text. This is a general safeguard of Claude: read the
|
|
instructions below to see what you send.</li>
|
|
<li>
|
|
<strong>This replaces the AMR for R GPT.</strong> The assistant used
|
|
to be a custom GPT in ChatGPT, which OpenAI retires on 11 December 2026.
|
|
The address <code>chat.amr-for-r.org</code> now leads to this page.</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section level2">
|
|
<h2 id="the-instructions">The instructions<a class="anchor" aria-label="anchor" href="#the-instructions"></a>
|
|
</h2>
|
|
<p>The instructions below are what the buttons fill in. You can also
|
|
copy them into any other AI chat service that can read web pages.</p>
|
|
<pre id="amr-assistant-prompt" class="amr-assistant-prompt"></pre>
|
|
<script>
|
|
$(function () {
|
|
$("#amr-assistant-prompt").text(AMR_ASSISTANT_PROMPT.trim());
|
|
$("[data-amr-assistant]").each(function () {
|
|
$(this).attr("href", amrAssistantUrl($(this).data("amr-assistant")));
|
|
});
|
|
$("#amr-assistant-copy").on("click", function () {
|
|
const $button = $(this);
|
|
navigator.clipboard.writeText(AMR_ASSISTANT_PROMPT).then(function () {
|
|
$button.text("Copied");
|
|
setTimeout(function () { $button.text("Copy instructions for another AI"); }, 2000);
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
|
</nav></aside>
|
|
</div>
|
|
|
|
|
|
|
|
<footer><div class="pkgdown-footer-left">
|
|
<p><code>AMR</code> (for R). Free and open-source, licenced under the <a target="_blank" href="https://github.com/msberends/AMR/blob/main/LICENSE" class="external-link">GNU GPL 2.0</a>. Developed at the <a target="_blank" href="https://www.rug.nl" class="external-link">University of Groningen</a> and <a target="_blank" href="https://www.umcg.nl" class="external-link">University Medical Center Groningen</a> in the Netherlands, in collaboration with <a href="https://amr-for-r.org/authors.html">many colleagues from around the world</a>.</p>
|
|
</div>
|
|
|
|
<div class="pkgdown-footer-right">
|
|
<p><a target="_blank" href="https://www.rug.nl" class="external-link"><img src="https://amr-for-r.org/logo_rug.svg" style="max-width: 150px;"></a><a target="_blank" href="https://www.umcg.nl" class="external-link"><img src="https://amr-for-r.org/logo_umcg.svg" style="max-width: 150px;"></a></p>
|
|
</div>
|
|
|
|
</footer>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|