The two countries were formally unified as the Republic of Yemen in 1990 .