SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
507 stars 149 forks source link

Generated R package is not valid. #467

Open srvanderplas opened 2 years ago

srvanderplas commented 2 years ago

I compiled the project as instructed and the generated R package does not install using either

setwd("SimpleElastix/Wrapping/R/Packaging/SimpleITK")
devtools::install(".")
> setwd("SimpleElastix/Wrapping/R/Packaging/SimpleITK/")
> devtools::install()
Error: Could not find package root. Is your working directory inside a package?

or by compressing the package and then using install.packages() with a link to the tar.gz file.

> install.packages("~/Projects/CSAFE/2022-simpleElastix-test/SimpleElastix/Wrapping/R/Packaging/SimpleITK.tar.gz", repos = NULL, type = "source")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
ERROR: cannot extract package from ‘/home/susan/Projects/CSAFE/2022-simpleElastix-test/SimpleElastix/Wrapping/R/Packaging/SimpleITK.tar.gz’
Warning in install.packages :
  installation of package ‘SimpleElastix/Wrapping/R/Packaging/SimpleITK.tar.gz’ had non-zero exit status