Error in x[oo, ] : subscript out of bounds

Hello @HAIRUI_FU ,

you give us too little information to work with.

Could I ask you to provide a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help. A reprex consists of the minimal code and data needed to recreate the issue/question you’re having. You can find instructions how to build and share one here:

Without this information we can only guess what you are trying to do.
But you could be lucky and somebody could recognize the coxpath function (assuming that is a function from a published package) ??