Edge cell identification in exactextractr

I’m trying to use exactextractr function to extract mean value of a raster image within a polygon. I have a question on how cells on the polygon boundary are identified. Does it follow the rule that if the cell center falls within the polygon, then this cell it will be considered? If so, can I change the rule to “consider cells if they are partially or fully within the polygon”?