r-getopt

Summary

Package designed to be used with Rscript to write ``#!’’ shebang scripts that accept short and long flags/options. Many users will prefer using instead the packages optparse or argparse which add extra features like automatically generated help option and usage, support for default values, positional argument support, etc.

Versions

  • 1.20.0

License

GPL (>= 2)

Meta

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

source:
  fn: getopt_1.20.0.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/getopt_1.20.0.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/getopt/getopt_1.20.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: testthat
requirements:
  build:
    - r

  run:
    - r

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('getopt')" # [not win]
    - "\"%R%\" -e \"library('getopt')\"" # [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/getopt
  license: GPL (>= 2)
  summary: Package designed to be used with Rscript to write ``#!'' shebang scripts that accept
    short and long flags/options. Many users will prefer using instead the packages
    optparse or argparse which add extra features like automatically generated help
    option and usage, support for default values, positional argument support, etc.

# The original CRAN metadata for this package was:

# Package: getopt
# Type: Package
# Title: C-like getopt behavior.
# Version: 1.20.0
# Author: Allen Day. Contributions from Trevor L Davis.
# Maintainer: Trevor L Davis <trevor.l.davis@stanford.edu>
# URL: https://github.com/trevorld/getopt
# BugReports: https://github.com/trevorld/getopt/issues
# Description: Package designed to be used with Rscript to write ``#!'' shebang scripts that accept short and long flags/options. Many users will prefer using instead the packages optparse or argparse which add extra features like automatically generated help option and usage, support for default values, positional argument support, etc.
# License: GPL (>= 2)
# Suggests: testthat
# Collate: 'getopt.R' 'utils.R'
# Packaged: 2013-08-30 07:02:26 UTC; trevorld
# NeedsCompilation: no
# Repository: CRAN
# Date/Publication: 2013-08-30 10:36:29

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