GO:0018454: acetoacetyl-CoA reductase activity
Catalysis of the reaction: (R)-3-hydroxyacyl-CoA + NADP+ = 3-oxoacyl-CoA + NADPH + H+.