Skip to content
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

reserved names + coc #65

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ book:
- publish/set-up.qmd
- publish/metadata.qmd
- publish/debug-build.qmd
- publish/terms.qmd
- publish/other-networks.qmd
lightbox: true
format:
Expand Down
48 changes: 48 additions & 0 deletions publish/terms.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: "Package publishing rules"
---

## Avoid name collisions

While it is technically possible to host a fork or completely different package with the same name in a universe,
we strongly recommend your **not** doing it.

- An user might mistakenly install the `example` package from CRAN rather than the version from an universe.
R will automatically overwrite one package with the other when running `install.packages()` or `update.packages()`.
- It becomes even trickier when other packages import the package.

Therefore, when two packages have the same name, and one of them is on CRAN, R-universe:
- treats the one that is on CRAN as the official version.
- warns users against the duplication on the page of the other package.

## Reserved names

The following names should be avoided as package name because `https://username.r-universe.dev/{pkg}/` has special meaning:

- api
- apis
- articles
- badges
- bin
- builds
- citation
- contributors
- datasets
- docs
- favicon.ico
- feed.xml
- index.xml
- manual
- packages
- readme
- robots.txt
- sitemap_index.xml
- sitemap.xml
- src
- stats

## Code of Conduct

Maintainers of universes are solely responsible for their projects.

The R-universe project itself is governed by the [rOpenSci code of conduct](https://ropensci.org/code-of-conduct/).
Loading