It's straightforward. Go to the official site for your specific R4 card revision and download the latest kernel from its download section — make sure it matches your hardware version, since kernels aren't interchangeable between revisions.
Copy the extracted files onto the root of your microSD card, then insert the card into the DS and boot. The menu should load automatically.