A General Imputation Framework in R