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-6
Depends: R (≥ 2.10), abind
Published: 2013-11-20
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-6.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: magic_1.5-6.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: CATkit, GFD, GMMBoost, list, MANOVA.RM, MCPAN, mdpeer, netmeta, optiSel, permutations, refund, rr, SemiParBIVProbit, SemiParSampleSel, spray
Reverse suggests: gap


Please use the canonical form to link to this page.