Clean up R extensions
Run the existing R extension packages through autopep8 to clean up.
This commit is contained in:
parent
6649f9edc2
commit
cb3505769b
4 changed files with 16 additions and 8 deletions
|
@ -24,15 +24,17 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class RBiocgenerics(Package):
|
class RBiocgenerics(Package):
|
||||||
"""S4 generic functions needed by many Bioconductor packages."""
|
"""S4 generic functions needed by many Bioconductor packages."""
|
||||||
|
|
||||||
homepage = 'https://www.bioconductor.org/packages/release/bioc/html/BiocGenerics.html'
|
homepage = 'https://www.bioconductor.org/packages/release/bioc/html/BiocGenerics.html'
|
||||||
url = "https://www.bioconductor.org/packages/release/bioc/src/contrib/BiocGenerics_0.16.1.tar.gz"
|
url = "https://www.bioconductor.org/packages/release/bioc/src/contrib/BiocGenerics_0.16.1.tar.gz"
|
||||||
|
|
||||||
version('0.16.1', 'c2148ffd86fc6f1f819c7f68eb2c744f', expand=False)
|
version('0.16.1', 'c2148ffd86fc6f1f819c7f68eb2c744f', expand=False)
|
||||||
|
|
||||||
extends('R')
|
extends('R')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
R('CMD', 'INSTALL', '--library=%s' % self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
R('CMD', 'INSTALL', '--library=%s' %
|
||||||
|
self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class RAbind(Package):
|
class RAbind(Package):
|
||||||
"""Combine multidimensional arrays into a single array. This is a
|
"""Combine multidimensional arrays into a single array. This is a
|
||||||
generalization of 'cbind' and 'rbind'. Works with vectors, matrices, and
|
generalization of 'cbind' and 'rbind'. Works with vectors, matrices, and
|
||||||
|
@ -31,7 +32,7 @@ class RAbind(Package):
|
||||||
'afill' for manipulating, extracting and replacing data in arrays."""
|
'afill' for manipulating, extracting and replacing data in arrays."""
|
||||||
|
|
||||||
homepage = "https://cran.r-project.org/"
|
homepage = "https://cran.r-project.org/"
|
||||||
url = "https://cran.r-project.org/src/contrib/abind_1.4-3.tar.gz"
|
url = "https://cran.r-project.org/src/contrib/abind_1.4-3.tar.gz"
|
||||||
|
|
||||||
version('1.4-3', '10fcf80c677b991bf263d38be35a1fc5', expand=False)
|
version('1.4-3', '10fcf80c677b991bf263d38be35a1fc5', expand=False)
|
||||||
|
|
||||||
|
@ -39,4 +40,5 @@ class RAbind(Package):
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
|
||||||
R('CMD', 'INSTALL', '--library=%s' % self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
R('CMD', 'INSTALL', '--library=%s' %
|
||||||
|
self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class RFilehash(Package):
|
class RFilehash(Package):
|
||||||
"""Implements a simple key-value style database where character string keys
|
"""Implements a simple key-value style database where character string keys
|
||||||
are associated with data values that are stored on the disk. A simple
|
are associated with data values that are stored on the disk. A simple
|
||||||
|
@ -36,11 +37,12 @@ class RFilehash(Package):
|
||||||
parties for use in the 'filehash' framework."""
|
parties for use in the 'filehash' framework."""
|
||||||
|
|
||||||
homepage = 'https://cran.r-project.org/'
|
homepage = 'https://cran.r-project.org/'
|
||||||
url = "https://cran.r-project.org/src/contrib/filehash_2.3.tar.gz"
|
url = "https://cran.r-project.org/src/contrib/filehash_2.3.tar.gz"
|
||||||
|
|
||||||
version('2.3', '01fffafe09b148ccadc9814c103bdc2f', expand=False)
|
version('2.3', '01fffafe09b148ccadc9814c103bdc2f', expand=False)
|
||||||
|
|
||||||
extends('R')
|
extends('R')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
R('CMD', 'INSTALL', '--library=%s' % self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
R('CMD', 'INSTALL', '--library=%s' %
|
||||||
|
self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class RMagic(Package):
|
class RMagic(Package):
|
||||||
"""A collection of efficient, vectorized algorithms for the creation and
|
"""A collection of efficient, vectorized algorithms for the creation and
|
||||||
investigation of magic squares and hypercubes, including a variety of
|
investigation of magic squares and hypercubes, including a variety of
|
||||||
|
@ -31,7 +32,7 @@ class RMagic(Package):
|
||||||
arrays."""
|
arrays."""
|
||||||
|
|
||||||
homepage = "https://cran.r-project.org/"
|
homepage = "https://cran.r-project.org/"
|
||||||
url = "https://cran.r-project.org/src/contrib/magic_1.5-6.tar.gz"
|
url = "https://cran.r-project.org/src/contrib/magic_1.5-6.tar.gz"
|
||||||
|
|
||||||
version('1.5-6', 'a68e5ced253b2196af842e1fc84fd029', expand=False)
|
version('1.5-6', 'a68e5ced253b2196af842e1fc84fd029', expand=False)
|
||||||
|
|
||||||
|
@ -40,4 +41,5 @@ class RMagic(Package):
|
||||||
depends_on('r-abind')
|
depends_on('r-abind')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
R('CMD', 'INSTALL', '--library=%s' % self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
R('CMD', 'INSTALL', '--library=%s' %
|
||||||
|
self.module.r_lib_dir, '%s' % self.stage.archive_file)
|
||||||
|
|
Loading…
Reference in a new issue