update rmagic