magic: Create and Investigate Magic Squares

A collection of efficient, vectorized algorithms for the creation and investigation of magic squares and hypercubes, including a variety of functions for the manipulation and analysis of arbitrarily dimensioned arrays. The package includes methods for creating normal magic squares of any order greater than 2. The ultimate intention is for the package to be a computerized embodiment all magic square knowledge, including direct numerical verification of properties of magic squares (such as recent results on the determinant of odd-ordered semimagic squares). Some antimagic functionality is included. The package also serves as a rebuttal to the often-heard comment "I thought R was just for statistics".

Version: 1.5-8
Depends: R (≥ 2.10), abind
Published: 2018-01-26
Author: Robin K. S. Hankin
Maintainer: "Robin K. S. Hankin" <hankin.robin at>
License: GPL-2
NeedsCompilation: no
Citation: magic citation info
In views: NumericalMathematics
CRAN checks: magic results


Reference manual: magic.pdf
Vignettes: A vignette for the magic package
Package source: magic_1.5-8.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: magic_1.5-8.tgz
OS X Mavericks binaries: r-oldrel: magic_1.5-6.tgz
Old sources: magic archive

Reverse dependencies:

Reverse depends: DMR, geometry, MM, sdcTarget, SNSequate, SODC, spBayes, spselect
Reverse imports: bgeva, CATkit, clespr, fdANOVA, GFD, GJRM, GMMBoost, list, MANOVA.RM, MCPAN, mdpeer, netmeta, nowcasting, optiSel, permutations, refund, rlme, rr, SemiParSampleSel, spray
Reverse suggests: gap


Please use the canonical form to link to this page.