The aws package provides functions for creating artificial seawater from Instant Ocean with a given salinity and alkalinity.
You can install asw like so:
devtools::install_github("pmcelhany/aws")