Skip to content

Commit 9e5e23e

Browse files
committed
0.1.3 on CRAN
1 parent e195b52 commit 9e5e23e

4 files changed

Lines changed: 33 additions & 10 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: rconfig
22
Type: Package
33
Title: Manage R Configuration at the Command Line
44
Version: 0.1.3
5-
Date: 2022-04-26
5+
Date: 2022-06-22
66
Authors@R: c(
77
person(given = "Peter",
88
family = "Solymos",

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ sudo cp ./inst/examples/commands.R /usr/local/bin/
252252
sudo chmod +x /usr/local/bin/commands.R
253253
```
254254

255-
Make sure that the R script has the 'shebang' (`#!/usr/bin/env Rscript`) as the 1st line, and now can drop the `Rscript` part and use the script as `commands.R model`.
255+
Make sure that the R script has the shebang (`#!/usr/bin/env Rscript`) as the 1st line, and now can drop the `Rscript` part and use the script as `commands.R model`.
256256

257257
### Shiny
258258

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ The rconfig package has the following features:
6767
- nested configurations can also be flattened
6868
- command line flags without a value will evaluate to `TRUE`,
6969
e.g. `--verbose`
70+
- differentiates verb/noun syntax, where verbs are sub-commands
71+
following the R script file name and preceding the command line
72+
flags (starting with `-` or `--`)
7073

7174
This looks very similar to what
7275
[litter](https://CRAN.R-project.org/package=littler),
@@ -397,7 +400,7 @@ Rscript iris.R --species virginica
397400

398401
``` bash
399402
Rscript iris.R --species setosa --verbose
400-
# 2022-06-12 20:27:47 - Started
403+
# 2022-06-22 10:37:53 - Started
401404
# Getting summaries for species setosa
402405
# Sepal.Length Sepal.Width Petal.Length Petal.Width
403406
# Min. :4.300 Min. :2.300 Min. :1.000 Min. :0.100
@@ -406,12 +409,12 @@ Rscript iris.R --species setosa --verbose
406409
# Mean :5.006 Mean :3.428 Mean :1.462 Mean :0.246
407410
# 3rd Qu.:5.200 3rd Qu.:3.675 3rd Qu.:1.575 3rd Qu.:0.300
408411
# Max. :5.800 Max. :4.400 Max. :1.900 Max. :0.600
409-
# 2022-06-12 20:27:47 - Done
412+
# 2022-06-22 10:37:53 - Done
410413
```
411414

412415
``` bash
413416
Rscript iris.R --species maxima --verbose
414-
# 2022-06-12 20:27:47 - Started
417+
# 2022-06-22 10:37:53 - Started
415418
# Error: Provide a valid species
416419
# Execution halted
417420
```
@@ -438,15 +441,15 @@ Rscript mtcars.R
438441

439442
``` bash
440443
Rscript mtcars.R --verbose --vars cyl
441-
# 2022-06-12 20:27:48 - Started
444+
# 2022-06-22 10:37:54 - Started
442445
# (Intercept) cyl
443446
# 37.88458 -2.87579
444-
# 2022-06-12 20:27:48 - Done
447+
# 2022-06-22 10:37:54 - Done
445448
```
446449

447450
``` bash
448451
Rscript mtcars.R --verbose --vars cal
449-
# 2022-06-12 20:27:48 - Started
452+
# 2022-06-22 10:37:54 - Started
450453
# Error: Not valid variable
451454
# Execution halted
452455
```
@@ -489,7 +492,7 @@ sudo cp ./inst/examples/commands.R /usr/local/bin/
489492
sudo chmod +x /usr/local/bin/commands.R
490493
```
491494

492-
Make sure that the R script has the shebang (`#!/usr/bin/env Rscript`)
495+
Make sure that the R script has the shebang (`#!/usr/bin/env Rscript`)
493496
as the 1st line, and now can drop the `Rscript` part and use the script
494497
as `commands.R model`.
495498

_pkgdown.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
1+
url: https://hub.analythium.io/rconfig
2+
3+
home:
4+
title: "rconfig: Manage R Configuration at the Command Line"
5+
description: |
6+
Configuration management using files (JSON, YAML, separated text),
7+
JSON strings, and command line arguments.
8+
19
template:
210
bootstrap: 5
311
includes:
4-
in_header: <script src="https://cdn.usefathom.com/script.js" data-site="XXTESXHY" defer></script>
12+
in_header: |
13+
<script src="https://cdn.usefathom.com/script.js" data-site="XXTESXHY" defer></script>
14+
<link rel="icon" href="https://hub.analythium.io/assets/logo/grays/favicon.ico" />
15+
opengraph:
16+
image:
17+
src: https://hub.analythium.io/assets/web/rconfig.png
18+
alt: "rconfig: Manage R Configuration at the Command Line"
19+
twitter:
20+
creator: "@psolymos"
21+
site: "@analythium"
22+
card: summary_large_image
23+
524
navbar:
625
structure:
726
right: [search, twitter, github]
@@ -14,3 +33,4 @@ navbar:
1433
icon: fa-github
1534
href: http://github.com/analythium
1635
aria-label: GitHub
36+

0 commit comments

Comments
 (0)