r-optparse

Summary

A command line parser inspired by Python’s ‘optparse’ library to be used with Rscript to write “#!” shebang scripts that accept short and long flag/options.

Versions

  • 1.3.0

License

GPL (>= 2)

Meta

package:
  name: r-optparse
  # Note that conda versions cannot contain -, so any -'s in the version have
  # been replaced with _'s.
  version: "1.3.0"

source:
  fn: optparse_1.3.0.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/optparse_1.3.0.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/optparse/optparse_1.3.0.tar.gz


  # You can add a hash for the file here, like md5 or sha1
  # md5: 49448ba4863157652311cc5ea4fea3ea
  # sha1: 3bcfbee008276084cbb37a2b453963c61176a322
  # patches:
   # List any patch files here
   # - fix.patch

build:
  # If this is a new build for the same version, increment the build
  # number. If you do not include this key, it defaults to 0.
  number: 1

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: knitr, stringr, testthat
requirements:
  build:
    - r
    - r-getopt >=1.19

  run:
    - r
    - r-getopt >=1.19

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('optparse')" # [not win]
    - "\"%R%\" -e \"library('optparse')\"" # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/trevorld/optparse
  license: GPL (>= 2)
  summary: A command line parser inspired by Python's 'optparse' library to be used with Rscript
    to write "#!" shebang scripts that accept short and long flag/options.

# The original CRAN metadata for this package was:

# Encoding: UTF-8
# Package: optparse
# Type: Package
# Title: Command line option parser.
# Version: 1.3.0
# Author: Trevor L Davis. Some documentation and examples ported from Allen Day's getopt package. Some documentation from the optparse Python module by the Python Software Foundation. Contributions from Steve Lianoglou, Jim Nikelski, Kirill Müller, and Peter Humburg.
# Maintainer: Trevor L Davis <trevor.l.davis@stanford.edu>
# Description: A command line parser inspired by Python's 'optparse' library to be used with Rscript to write "#!" shebang scripts that accept short and long flag/options.
# License: GPL (>= 2)
# Copyright: See file (inst/)COPYRIGHTS.
# URL: https://github.com/trevorld/optparse
# BugReports: https://github.com/trevorld/optparse/issues
# LazyLoad: yes
# Depends: R (>= 2.9.0)
# Imports: methods, getopt (>= 1.19)
# Suggests: knitr, stringr, testthat
# VignetteBuilder: knitr
# Packaged: 2014-12-10 23:10:02 UTC; trevorld
# NeedsCompilation: no
# Repository: CRAN
# Date/Publication: 2014-12-11 08:02:20

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml