Preheat your oven to 400°F (200°C) so it can warm up while you prepare the batter.
In a large bowl, mix together the sugar, oil, and vanilla.
Add the eggs one by one, mixing well after each addition.
In another bowl, sift the flour, cinnamon, baking soda, and salt together until well combined.
Gradually add this dry mixture to your wet ingredients.
Fold the grated carrots, raisins, and walnuts into the batter until everything is evenly distributed.
Scoop the batter into cupcake liners in a muffin tin, filling each about 3/4 full.
Bake for about 10 minutes.