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

Road to CRAN or r-universe #154

Open
dipterix opened this issue Feb 23, 2023 · 4 comments
Open

Road to CRAN or r-universe #154

dipterix opened this issue Feb 23, 2023 · 4 comments

Comments

@dipterix
Copy link

dipterix commented Feb 23, 2023

Dear ANTs wizards,

I've recently tried to make incorporate ANTs with RAVE, realizing there is no compiled versions of ANTsR available online I found a very old thread in ITKR discussing about making ANTsR available on CRAN. I wonder what happened that purged this process?

Also have you tried r-universe.dev? It's a CRAN-like repository that can cross-compile R packages for Windows and OSX. Unlike CRAN, which has very strict pre-screening, this platform allows you to put github repo and it builds hourly. If the package is not statically linked to some library, we should be able to make the package portable.

It took me literally 2min to put ITKR on r-universe (and less than 3 hours to get it compiled, it's automated, so I don't have to wait at the screen), but it does not compile on windows. MacOS works great.

@dipterix dipterix changed the title Road to CRAN Road to CRAN or r-universe Feb 23, 2023
@stnava
Copy link
Member

stnava commented Feb 23, 2023

there was some progress on windows compilation on the antspy side but not sure that would translate to itkr + antsrcore. we would be very happy if the builds were easier to maintain / release. do you have any time or interest in assisting with this? does your 2 minute investment in ITKR enable an easy to install release? if so - how? could that be done for ANTsRCore/ANTsR/ANTsRNet?

any feedback/help welcome.

@dipterix
Copy link
Author

dipterix commented Feb 23, 2023

One thing I'm worried about is whether ANTsR is portable, i.e. can be built on one machine and used in another. I'm testing the r-universe with my account. Documenting the procedure in case for future use:

  1. Go to https://github.com/apps/r-universe/installations/new to register
  2. Create universe repository under my account
  3. Write packages.json under the repository just created, starting with
[ 
 {
    "package": "ITKR",
    "url" : "https://github.com/stnava/ITKR"
  }
]

r-universe should start to compile the package for the next cycle, I got this package compiled in 2 hours

  1. Add ANTsRCore to the packages.json, wait for build
  2. Add ANTsR to the packages.json, wait for build

(3, 4, 5 must go in order, one must finish build before the next. only need to do this for the first time)

Right now I'm adding ANTsR ITKR is available for osx and ubuntu (windows failed). ANTsRCore failed R-CMD check

@ncullen93
Copy link
Member

I have gotten packages on CRAN before and I have time to assist. It has to be possible. I've created a kanban project here https://github.com/orgs/ANTsX/projects/2/ to track what needs to be done. There are a ton of moving pieces here.

@muschellij2
Copy link
Collaborator

So you can have a CRAN package that suggests ANTsR/ITKR if it's installed via drat and only a suggests: https://cran.r-project.org/web/packages/neuronorm/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants