Due to changes in ECOS, the stat_code parameter has been added to the arguments of the statTableList() function.
ecos::statSearch() without loading the package occurs an error regarding getCalendarTime() function. so I modified calendar to ecos::calendar.
statSearch() function without stat_code shows all stat list. but the default max.print option is too short to show all stat list. so I modified max.print to .Machine$integer.max.setKey(), printKey() have been replaced by kosis.setKey(), kosis.printKey()