That is not an option in quantmod (BTW you have to specify the libraries you are using when providing a reprex) and as far as I know there is no API wrapper in R for minute-level intraday stock data, your best chance would be to check if there is on online service that provides that periodicity through an API and make direct API requests using httr package or something similar.