Roger Federer has withdrawn from the Madrid Masters to be with his family. (Eric Gaillard/Reuters)

Updated at 3:49 p.m. with Federer’s announcement

Roger Federer will be a father to twins once again. The Swiss announced the news on Twitter Tuesday afternoon.

Earlier in the day, the world No. 4 announced on his Web site that he has withdrawn from this week’s Madrid Open to spend time with his pregnant wife, Mirka.

I’ve decided to withdraw from Madrid to be with my wife Mirka during these next few exciting weeks for our family. I apologize to my fans and hope to be back in Madrid next year. I’ll be training near my home, and am excited to rejoin the Tour soon!

Federer kept Mirka’s due date under wraps but said last month that he would skip the French Open, which runs May 25-June 8, if need be. The 32-year-old also has twin girls, born in 2009.

He lost in the finals to countryman Stanislas Wawrinka in the Monte Carlo Masters last month and was set to play France’s Gilles Simon in the second round at Madrid after receiving a first-round bye.

The 17-time Grand Slam winner is still scheduled to play at the Italian Open that starts May 12.