mc() and mc_sql()
looked for a binary named mc while
install_mc() installs mc.exe, so the install
check never matched and interactive sessions were prompted to
(re)install on every call. The binary name is now resolved through a
shared mc_bin() helper everywhere. Thanks to @mdsumner for the
diagnosis (#16, #15).mc_sql() returns S3-Select results with
--json, but mc reports server-side errors as a
JSON payload on stdout while exiting 0.
mc_sql() now detects that payload and raises an R error
instead of returning the error object as if it were query results.CRAN-policy based bugfix release.
~/.mc. Configuration files are now placed in
minio_path() directory, using OS-specific path from
tools::R_user_dir(), or configured as
options("minioclient.dir")install_mc() will now prompt before install in
interactive mode and must be called explicitly in batch scripts.mc_ls() to provide results as a
data.framemc_sql() function added, which can query CSV, JSON and
parquet objects using sql (S3 Select API sql syntax)mc_head() function added, which reads the first n lines
from an object and returns a stringmc_cat() function added, which can be useful when
reading or previewing a smaller file directly from the object storage
server without first requiring to download it locallymc_config_set(), can be used to set
session tokens #1.mc_mb() gains optional arguments, e.g. to not error if
bucket exists.mc_rb() prompts first in interactive mode.NEWS.md file to track changes to the
package.mc()