(v3.1.0.9024) Replace the custom GPT with the AMR for R Assistant, which opens Claude or ChatGPT with instructions to answer from the documentation of the installed version

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-11-16 11:19:32 +01:00
1 parent 6007320202
commit e49add7d70
11 files changed
+144 -140

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
---
title: "AMR for R Assistant"
output:
rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{AMR for R Assistant}
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown}
---
The AMR for R Assistant answers your questions about the `AMR` 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.
## Ask a question
1. Choose a chat service below. It opens in a new tab, with the instructions for the assistant already filled in.
2. Type your question below the instructions, preferably with your package version, which is the output of `packageVersion("AMR")` in R.
3. Send the message.
```{=html}
<div class="amr-assistant-buttons">
<a class="btn btn-primary" target="_blank" rel="noopener" data-amr-assistant="claude" href="https://claude.ai">Ask Claude</a>
<a class="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>
```
## Good to know
- **Check every answer.** An AI can make mistakes, also with these instructions. Verify the code and its results before you rely on them.
- **Never enter patient-identifiable data** into a chat service.
- **An account may be needed.** 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.
- **Claude shows a caution message** for chats that open with filled-in text. This is a general safeguard of Claude: read the instructions below to see what you send.
- **This replaces the AMR for R GPT.** The assistant used to be a custom GPT in ChatGPT, which OpenAI retires on 11 December 2026. The address `chat.amr-for-r.org` now leads to this page.
## The instructions
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.
<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>