Update melting.r

support for EmptyTarget attribute