ELIC_R-1-foss-2019a-R-3.6.0.eb 6.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. easyblock = 'Bundle'
  2. name = 'ELIC_R'
  3. version = '1'
  4. versionsuffix = '-R-%(rver)s'
  5. homepage = 'https://gogs.elic.ucl.ac.be'
  6. description = """This repo provides additional Python and R extensions for ELIC ecosystem."""
  7. toolchain = {'name': 'foss', 'version': '2019a'}
  8. dependencies = [
  9. ('R', '3.6.0'),
  10. ('GEOS', '3.7.2', '-Python-3.7.2'),
  11. ('GDAL', '3.0.0', '-Python-3.7.2'),
  12. ]
  13. exts_default_options = {
  14. 'source_urls': [
  15. 'https://cran.r-project.org/src/contrib/Archive/%(name)s', # package archive
  16. 'https://cran.r-project.org/src/contrib/', # current version of packages
  17. 'https://cran.freestatistics.org/src/contrib', # mirror alternative for current packages
  18. ],
  19. 'source_tmpl': '%(name)s_%(version)s.tar.gz'
  20. }
  21. exts_defaultclass = 'RPackage'
  22. exts_filter = ("R -q --no-save", "library(%(ext_name)s)")
  23. # CRAN packages on which these Bioconductor packages depend are available in R module on which this depends
  24. # !! order of packages is important !!
  25. # packages updated on Sept 25th 2018
  26. exts_list = [
  27. ('rgdal', '1.4-4'),
  28. ('gdalUtils', '2.0.1.14'),
  29. ('ncdf4', '1.16.1'),
  30. ('gdtools', '0.1.9'),
  31. ('leaflet', '2.0.2'),
  32. ('satellite', '1.0.1'),
  33. ('sf', '0.7-4'),
  34. ('svglite', '1.2.2'),
  35. ('leafem', '0.0.1'),
  36. ('leafpop', '0.0.1'),
  37. ('mapview', '2.7.0'),
  38. ('MuMIn', '1.43.6'),
  39. ('BayesianTools', '0.1.6'),
  40. ]
  41. modextrapaths = {'R_LIBS': ''}
  42. postinstallcmds = [
  43. "cd %(installdir)s && " +
  44. 'Rscript -e "install.packages(\'gstat\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'RNetCDF\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'ggmap\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'automap\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'clhs\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rasterVis\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'reporttools\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'remotes\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'spatstat\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rgeos\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'RandomFieldsUtils\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'RandomFields\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'spptest\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'GET\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "library(remotes); install_github(\'myllym/GET\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'shinydashboard\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rsconnect\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'package_vector\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'tidyverse\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'tidyr\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'R.utils\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'shiny\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'shinythemes\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'shinyFiles\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'RColorBrewer\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rworldmap\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rworldxtra\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'colourpicker\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'maptools\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'colorRamps\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'mapdata\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'mapproj\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'FNN\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'countriesHigh\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'remotes\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'RPostgreSQL\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'getPass\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'rpostgis\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'aws.s3\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'stringdist\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'fuzzyjoin\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" ; Rscript -e "install.packages(\'cmsaf\', repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')"'
  45. ]
  46. sanity_check_paths = {
  47. 'files': [],
  48. 'dirs': ['ncdf4', 'sf', 'mapview'],
  49. }
  50. moduleclass = 'numlib'