Merge pull request #1395 from glennpj/r-ggmap
New package - r-ggmap and dependencies
This commit is contained in:
commit
68ba5377c1
8 changed files with 375 additions and 0 deletions
45
var/spack/repos/builtin/packages/r-geosphere/package.py
Normal file
45
var/spack/repos/builtin/packages/r-geosphere/package.py
Normal file
|
@ -0,0 +1,45 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RGeosphere(Package):
|
||||
"""Spherical trigonometry for geographic applications. That is, compute
|
||||
distances and related measures for angular (longitude/latitude)
|
||||
locations."""
|
||||
|
||||
homepage = "https://cran.r-project.org/package=geosphere"
|
||||
url = "https://cran.r-project.org/src/contrib/geosphere_1.5-5.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/geosphere"
|
||||
|
||||
version('1.5-5', '28efb7a8e266c7f076cdbcf642455f3e')
|
||||
|
||||
extends('R')
|
||||
|
||||
depends_on('r-sp', type=nolink)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
57
var/spack/repos/builtin/packages/r-ggmap/package.py
Normal file
57
var/spack/repos/builtin/packages/r-ggmap/package.py
Normal file
|
@ -0,0 +1,57 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RGgmap(Package):
|
||||
"""A collection of functions to visualize spatial data and models on top of
|
||||
static maps from various online sources (e.g Google Maps and Stamen Maps).
|
||||
It includes tools common to those tasks, including functions for
|
||||
geolocation and routing."""
|
||||
|
||||
homepage = "https://github.com/dkahle/ggmap"
|
||||
url = "https://cran.r-project.org/src/contrib/ggmap_2.6.1.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/ggmap"
|
||||
|
||||
version('2.6.1', '25ad414a3a1c6d59a227a9f22601211a')
|
||||
|
||||
extends('R')
|
||||
|
||||
depends_on('r-ggplot2', type=nolink)
|
||||
depends_on('r-proto', type=nolink)
|
||||
depends_on('r-rgooglemaps', type=nolink)
|
||||
depends_on('r-png', type=nolink)
|
||||
depends_on('r-plyr', type=nolink)
|
||||
depends_on('r-reshape2', type=nolink)
|
||||
depends_on('r-rjson', type=nolink)
|
||||
depends_on('r-mapproj', type=nolink)
|
||||
depends_on('r-jpeg', type=nolink)
|
||||
depends_on('r-geosphere', type=nolink)
|
||||
depends_on('r-digest', type=nolink)
|
||||
depends_on('r-scales', type=nolink)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
45
var/spack/repos/builtin/packages/r-jpeg/package.py
Normal file
45
var/spack/repos/builtin/packages/r-jpeg/package.py
Normal file
|
@ -0,0 +1,45 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RJpeg(Package):
|
||||
"""This package provides an easy and simple way to read, write and display
|
||||
bitmap images stored in the JPEG format. It can read and write both files
|
||||
and in-memory raw vectors."""
|
||||
|
||||
homepage = "http://www.rforge.net/jpeg/"
|
||||
url = "https://cran.r-project.org/src/contrib/jpeg_0.1-8.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/jpeg"
|
||||
|
||||
version('0.1-8', '696007451d14395b1ed1d0e9af667a57')
|
||||
|
||||
extends('R')
|
||||
|
||||
depends_on('jpeg')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
43
var/spack/repos/builtin/packages/r-mapproj/package.py
Normal file
43
var/spack/repos/builtin/packages/r-mapproj/package.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RMapproj(Package):
|
||||
"""Converts latitude/longitude into projected coordinates."""
|
||||
|
||||
homepage = "https://cran.r-project.org/package=mapproj"
|
||||
url = "https://cran.r-project.org/src/contrib/mapproj_1.2-4.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/mapproj"
|
||||
|
||||
version('1.2-4', '10e22bde1c790e1540672f15ddcaee71')
|
||||
|
||||
extends('R')
|
||||
|
||||
depends_on('r-maps', type=nolink)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
42
var/spack/repos/builtin/packages/r-proto/package.py
Normal file
42
var/spack/repos/builtin/packages/r-proto/package.py
Normal file
|
@ -0,0 +1,42 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RProto(Package):
|
||||
"""An object oriented system using object-based, also called
|
||||
prototype-based, rather than class-based object oriented ideas."""
|
||||
|
||||
homepage = "http://r-proto.googlecode.com/"
|
||||
url = "https://cran.r-project.org/src/contrib/proto_0.3-10.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/proto"
|
||||
|
||||
version('0.3-10', 'd5523943a5be6ca2f0ab557c900f8212')
|
||||
|
||||
extends('R')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
47
var/spack/repos/builtin/packages/r-rgooglemaps/package.py
Normal file
47
var/spack/repos/builtin/packages/r-rgooglemaps/package.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RRgooglemaps(Package):
|
||||
"""This package serves two purposes: (i) Provide a comfortable R interface
|
||||
to query the Google server for static maps, and (ii) Use the map as a
|
||||
background image to overlay plots within R. This requires proper coordinate
|
||||
scaling."""
|
||||
|
||||
homepage = "https://cran.r-project.org/package=RgoogleMaps"
|
||||
url = "https://cran.r-project.org/src/contrib/RgoogleMaps_1.2.0.7.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/RgoogleMaps"
|
||||
|
||||
version('1.2.0.7', '2e1df804f0331b4122d841105f0c7ea5')
|
||||
|
||||
extends('R')
|
||||
|
||||
depends_on('r-png', type=nolink)
|
||||
depends_on('r-rjsonio', type=nolink)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
41
var/spack/repos/builtin/packages/r-rjson/package.py
Normal file
41
var/spack/repos/builtin/packages/r-rjson/package.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RRjson(Package):
|
||||
"""Converts R object into JSON objects and vice-versa."""
|
||||
|
||||
homepage = "https://cran.r-project.org/package=rjson"
|
||||
url = "https://cran.r-project.org/src/contrib/rjson_0.2.15.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/rjson"
|
||||
|
||||
version('0.2.15', '87d0e29bc179c6aeaf312b138089f8e9')
|
||||
|
||||
extends('R')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
55
var/spack/repos/builtin/packages/r-rjsonio/package.py
Normal file
55
var/spack/repos/builtin/packages/r-rjsonio/package.py
Normal file
|
@ -0,0 +1,55 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class RRjsonio(Package):
|
||||
"""This is a package that allows conversion to and from data in Javascript
|
||||
object notation (JSON) format. This allows R objects to be inserted into
|
||||
Javascript/ECMAScript/ActionScript code and allows R programmers to read
|
||||
and convert JSON content to R objects. This is an alternative to rjson
|
||||
package. Originally, that was too slow for converting large R objects to
|
||||
JSON and was not extensible. rjson's performance is now similar to this
|
||||
package, and perhaps slightly faster in some cases. This package uses
|
||||
methods and is readily extensible by defining methods for different
|
||||
classes, vectorized operations, and C code and callbacks to R functions for
|
||||
deserializing JSON objects to R. The two packages intentionally share the
|
||||
same basic interface. This package (RJSONIO) has many additional options to
|
||||
allow customizing the generation and processing of JSON content. This
|
||||
package uses libjson rather than implementing yet another JSON parser. The
|
||||
aim is to support other general projects by building on their work,
|
||||
providing feedback and benefit from their ongoing development."""
|
||||
|
||||
homepage = "https://cran.r-project.org/package=RJSONIO"
|
||||
url = "https://cran.r-project.org/src/contrib/RJSONIO_1.3-0.tar.gz"
|
||||
list_url = "https://cran.r-project.org/src/contrib/Archive/RJSONIO"
|
||||
|
||||
version('1.3-0', '72c395622ba8d1435ec43849fd32c830')
|
||||
|
||||
extends('R')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
|
||||
self.stage.source_path)
|
Loading…
Reference in a new issue