ELIC_R-1-foss-2020b.eb 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. easyblock = 'Bundle'
  2. name = 'ELIC_R'
  3. version = '1'
  4. homepage = 'https://gogs.elic.ucl.ac.be'
  5. description = """This repo provides additional Python and R extensions for ELIC ecosystem."""
  6. toolchain = {'name': 'foss', 'version': '2020b'}
  7. dependencies = [
  8. ('R', '4.0.5'),
  9. ('GDAL', '3.2.1'),
  10. ('PostgreSQL', '13.2'),
  11. ]
  12. exts_default_options = {
  13. 'source_urls': [
  14. 'https://cran.r-project.org/src/contrib/Archive/%(name)s', # package archive
  15. 'https://cran.r-project.org/src/contrib/', # current version of packages
  16. 'https://cran.freestatistics.org/src/contrib', # mirror alternative for current packages
  17. ],
  18. 'source_tmpl': '%(name)s_%(version)s.tar.gz'
  19. }
  20. exts_defaultclass = 'RPackage'
  21. exts_filter = ("R -q --no-save", "library(%(ext_name)s)")
  22. modextrapaths = {'R_LIBS': ''}
  23. postinstallcmds = [
  24. "cd %(installdir)s && " +
  25. 'Rscript -e "install.packages(c(\'rgdal\', \'gdalUtils\', \'ncdf4\', \'gdtools\', \'leaflet\', \'satellite\', \'sf\', \'svglite\', \'leafem\', \'leafpop\', \'mapview\', \'MuMIn\', \'intervals\', \'spacetime\', \'gstat\', \'RNetCDF\', \'automap\', \'clhs\', \'reporttools\', \'rgeos\', \'RandomFieldsUtils\', \'RandomFields\', \'rworldmap\', \'rworldxtra \', \'colorRamps\', \'mapdata\', \'mapproj\', \'RPostgreSQL\', \'getPass\', \'stringdist\', \'here\', \'svMisc\', \'networkD3\', \'cmsaf\', \'RPostgres\', \'nzelect\', \'wordcloud\', \'ngram\', \'rtweet\', \'lettercase\', \'xgboost\', \'rts\', \'RgoogleMaps\', \'packrat\', \'rsconnect\', \'rpostgis\', \'aws.signature\', \'aws.s3\', \'geosphere\', \'fuzzyjoin\', \'refinr\', \'x13binary\', \'seasonal\', \'mitools\', \'survey\', \'sysfonts\', \'showtextdb\', \'showtext\', \'BiocManager\', \'rvcheck\', \'scatterpie\', \'velox\', \'rlist\', \'measurements\', \'qpdf\', \'fda\', \'fda.usc\', \'gstat\', \'countrycode\', \'itcSegment\', \'owmr\', \'rwunderground\', \'corrplot\', \'prettymapr\', \'prospectr\', \'rosm\', \'rpart.plot\', \'varhandle\', \'expint\', \'actuar\'), repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" && ' +
  26. 'Rscript -e "install.packages(c(\'treemap\', \'ggmap\', \'hts\', \'thief\', \'forecastHybrid\', \'ggseas\', \'colourpicker\', \'bsplus\', \'profvis\'), repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')" && ' +
  27. 'Rscript -e "library(remotes); install_github(\'myllym/GET\', lib=\'%(installdir)s\')" && ' +
  28. 'Rscript -e "install.packages(c(\'shinyFiles\', \'shinyjs\', \'shinyhelper\', \'shinycssloaders\', \'shinyWidgets\', \'shinyBS\'), repos=\'http://cran.rstudio.com/\', lib=\'%(installdir)s\')" && ' +
  29. 'Rscript -e "install.packages(c(\'jsonlite\', \'readxl\', \'tidyverse\', \'data.table\', \'lubridate\', \'stringdist\', \'stringi\', \'aws.s3\', \'snakecase\', \'fuzzyjoin\', \'Matrix\', \'RSelenium\'), repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')"'
  30. ]
  31. sanity_check_paths = {
  32. 'files': [],
  33. 'dirs': ['RPostgreSQL'],
  34. }
  35. moduleclass = 'numlib'