Current content of stlarepo

expansions

Expansions of integer and real numbers, and odometers.

See demo at http://stla.github.io/stlapblog/posts/expansions_package.html.

dir2json

Hierarchical structure of a folder as a JSON string, and a Shiny application. Also returns the tree view of a folder.

> library(dir2json)
> cat(dir2json("src"))
{"name":"src","_type":"folder","children":[{"name":"contrib","_type":"folder","children":[{"name":"tableaux_0.1.0.tar.gz","_type":"file","size":2804524},{"name":"skewtableaux_0.1.0.tar.gz","_type":"file","size":2851267},{"name":"PACKAGES.gz","_type":"file","size":421},{"name":"PACKAGES","_type":"file","size":876},{"name":"jsonAccess_0.1.1.tar.gz","_type":"file","size":4854761},{"name":"expansions_1.2.tar.gz","_type":"file","size":2378512},{"name":"dir2json_2.1.0.tar.gz","_type":"file","size":5339478}]}]}
> cat(dir2tree("src"))
src
|
`- contrib
   |
   +- tableaux_0.1.0.tar.gz
   |
   +- skewtableaux_0.1.0.tar.gz
   |
   +- PACKAGES.gz
   |
   +- PACKAGES
   |
   +- jsonAccess_0.1.1.tar.gz
   |
   +- expansions_1.2.tar.gz
   |
   `- dir2json_2.1.0.tar.gz
> cat(dir2tree(".", vertical=TRUE, depth=1))
                                          .                                          
                                          |                                          
  --------------------------------------------------------------------------------   
 /       |          |           |        |        |           |          |        \  
src  index.Rmd  index.html  drat.Rproj  bin  .Rproj.user  .Rhistory  .gitignore  .git
> dir2json::shinyDirTree(".")

jsonAccess

Access directly to values and array elements in a JSON string.

See demo at https://github.com/stla/jsonAccess.

tableaux

Young tableaux.

> library(tableaux)
> shape <- c(3,2)
> ( tableaux <- standardYoungTableaux(shape) )
[[1]]
[[1]][[1]]
[1] 1 3 5

[[1]][[2]]
[1] 2 4


[[2]]
[[2]][[1]]
[1] 1 2 5

[[2]][[2]]
[1] 3 4


[[3]]
[[3]][[1]]
[1] 1 3 4

[[3]][[2]]
[1] 2 5


[[4]]
[[4]][[1]]
[1] 1 2 4

[[4]][[2]]
[1] 3 5


[[5]]
[[5]][[1]]
[1] 1 2 3

[[5]][[2]]
[1] 4 5
> cat(asciiTableau(tableaux[[5]]))
1 2 3
4 5  
> dualTableau(tableaux[[5]])
[[1]]
[1] 1 4

[[2]]
[1] 2 5

[[3]]
[1] 3

skewtableaux

Skew tableaux.

> library(skewtableaux)
> skewtab <- skewtableau(list(3,c(1,1)), list(1,c(2,3)))
> cat(asciiSkewTableau(skewtab))
. . . 1 1
. 2 3    
> skewTableauShape(skewtab)
[1] "SkewPartition [5,3] / [3,1]"

Installation

To install a package, e.g. expansions:

drat::addRepo("stlarepo")
install.packages("expansions")

Windows users: the expansions package requires Rtools. If you have not set the Rtools path in your environment variables, run devtools::find_rtools() before install.packages.

System requirements

These packages use some DLLs. On Windows, they are standalone. On Linux, they are linked to the ghc dynamic libraries.