Added R and P arguments so that ppp_quad_lin can be used here