From f1ff25e8ca511ecb4d95d3fc9089142a921b09f1 Mon Sep 17 00:00:00 2001 From: Yaoxiang Li Date: Thu, 19 Dec 2024 00:48:06 -0500 Subject: [PATCH] Update other-networks.qmd to refine language and structure (#81) --- publish/other-networks.qmd | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/publish/other-networks.qmd b/publish/other-networks.qmd index 0956b95..8f02344 100644 --- a/publish/other-networks.qmd +++ b/publish/other-networks.qmd @@ -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.