Skip to content

Commit

Permalink
Update other-networks.qmd to refine language and structure (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoxiangLi authored Dec 19, 2024
1 parent e178888 commit f1ff25e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions publish/other-networks.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ title: "Relation to other networks"

## Relation to other networks

Packages on R-universe may also also exist on other networks, such as CRAN or Bioconductor.
Packages on R-universe may also exist on other networks, such as CRAN or Bioconductor.

Note that CRAN is not meant to be the only CRAN-style package repository, as [explained by CRAN co-founder Kurt Hornik in his useR! 2024 keynote](https://static.sched.com/hosted_files/userconf2024/41/user2024_CRAN.pdf#page=8).
It's important to note that CRAN is not intended to be the sole CRAN-style package repository, as [explained by CRAN co-founder Kurt Hornik in his useR! 2024 keynote](https://static.sched.com/hosted_files/userconf2024/41/user2024_CRAN.pdf#page=8).

## Can we use r-universe to host older versions of CRAN packages?
## Can we use R-universe to host older versions of CRAN packages?

This is possible, but be careful that it may not work as you expect.
R's `install.packages()` and `update.packages()` will always install the latest version of a package it can find in any of the available repos.
So the package may automatically get updated to the CRAN version on the end-user machine.
While hosting older versions of CRAN packages on R-universe is technically possible, it may not work as intended.

## Can we use r-universe to host a fork of a CRAN package?
- R's `install.packages()` and `update.packages()` functions will always install the latest version of a package available across all configured repositories.
- As a result, the older version hosted on R-universe might be automatically updated to the latest CRAN version on the user’s machine.

This is possible but generally a bad idea.
Your package may automatically get overwritten by the CRAN version of the package the next time the user runs `install.packages()` or `update.packages()`.
Also note that other packages may depend on this package, and might not be compatible with your fork.
## Can we use R-universe to host a fork of a CRAN package?

Hosting a fork of a CRAN package on R-universe is possible but generally not recommended.

- The CRAN version of the package may overwrite your fork when the user runs `install.packages()` or `update.packages()`.
- Additionally, other packages depending on the original CRAN package may not be compatible with your fork, leading to potential issues.

0 comments on commit f1ff25e

Please sign in to comment.