Clean up R extensions

Run the existing R extension packages through autopep8 to clean up.
This commit is contained in:
Glenn Johnson 2016-05-28 22:31:47 -05:00
parent 6649f9edc2
commit cb3505769b
4 changed files with 16 additions and 8 deletions

View File

@ -24,6 +24,7 @@
##############################################################################
from spack import *
class RBiocgenerics(Package):
"""S4 generic functions needed by many Bioconductor packages."""
@ -35,4 +36,5 @@ class RBiocgenerics(Package):
extends('R')
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)

View File

@ -24,6 +24,7 @@
##############################################################################
from spack import *
class RAbind(Package):
"""Combine multidimensional arrays into a single array. This is a
generalization of 'cbind' and 'rbind'. Works with vectors, matrices, and
@ -39,4 +40,5 @@ class RAbind(Package):
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)

View File

@ -24,6 +24,7 @@
##############################################################################
from spack import *
class RFilehash(Package):
"""Implements a simple key-value style database where character string keys
are associated with data values that are stored on the disk. A simple
@ -43,4 +44,5 @@ class RFilehash(Package):
extends('R')
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)

View File

@ -24,6 +24,7 @@
##############################################################################
from spack import *
class RMagic(Package):
"""A collection of efficient, vectorized algorithms for the creation and
investigation of magic squares and hypercubes, including a variety of
@ -40,4 +41,5 @@ class RMagic(Package):
depends_on('r-abind')
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)