egenn / rtemis

Advanced Machine Learning and Visualization
https://rtemis.org
GNU General Public License v3.0
137 stars 19 forks source link

Put rtemis on R Universe #60

Closed HenrikBengtsson closed 9 months ago

HenrikBengtsson commented 9 months ago

Now when we have a package that passes R CMD check, it's quite easy to put rtemis on R Universe, so it can be installed as:

install.packages("rtemis", repos = c("https://egenn.r-universe.dev", "https://cloud.r-project.org"))

To do this, see https://github.com/r-universe-org/help#how-to-setup-your-personal-universe, which boils down to:

  1. create a repository named universe, i.e. https://github.com/egenn/universe

  2. add a package.json packages.json file containing:

[
    {
        "package": "rtemis",
        "url": "https://github.com/egenn/rtemis"
    }
]
  1. Install https://github.com/apps/r-universe/installations/new to your GitHub account.

  2. Wait at most an hour.

  3. Check https://egenn.r-universe.dev.

I think this is a good first step towards submitting it to CRAN.

HenrikBengtsson commented 9 months ago

See also https://jeroen.github.io/runiverse2021/#45 for how it works.

HenrikBengtsson commented 9 months ago

Just checking, did you do Step 3 above?

egenn commented 9 months ago

I did, yes. First I'd made an egenn.r-universe.dev repo, and followed step 3, then noticed the clash because of the auto-created site for the music package from CRAN. Then made a universe repo - different set of instructions mentioned that. Will try re-running the github app installation see if it does anything.

HenrikBengtsson commented 9 months ago

@jeroen, @egenn is trying to set up his own R Universe (https://github.com/egenn/universe), but the automatic one created for CRAN packages already exists (https://egenn.r-universe.dev/). How can he make his own trump/override the one generated automatically?

jeroen commented 9 months ago

It does so automatically, however there is a typo. The registry file in https://github.com/egenn/universe has to be called packages.json (plural). It now only has a file called package.json. Once that is fixed, the bot will automatically switch over.

egenn commented 9 months ago

All good, thank you, @jeroen and @HenrikBengtsson.

HenrikBengtsson commented 9 months ago

Thanks @jeroen (My bad; I made that typo in my gist above).

@egenn , I can no longer access https://github.com/egenn/universe - what changed?

egenn commented 9 months ago

Switched to https://github.com/egenn/egenn.r-universe.dev