These data input functions are deprecated and they will be removed in the next release of hyperspec package. Now functions in package hySpc.read.txt (link) should be used as the alternatives.
read.ini(
con = stop("Connection con needed."),
skip = NULL,
encoding = "unknown"
)
connection or file name
number of lines to skip before first [section]
starts
a list with one element per section in the .ini file, each containing a list with elements for the key-value-pairs.