knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

nml

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge

An R parser of Fortran namelist files.

Installation

You can install nml from github with:

# install.packages("devtools")
devtools::install_github("jsta/nml")

Example

Using the R parser

library(nml)
read_nml("tests/testthat/sample.nml")

Using the f90nml python parser via the reticulate bridge

library(reticulate)
use_python("/home/jose/anaconda3/bin/python")

f90nml <- import("f90nml")
pd     <- import("pandas")

nml <- f90nml$read("tests/testthat/sample.nml")

pd$DataFrame$from_dict(nml)

Prior Art

This package was inspired by f90nml and glmtools.



jsta/nml documentation built on July 27, 2021, 10:50 a.m.