Artificial intelligent assistant

R Nippon::kakasiでエラーになってしまう。 kakasi library(Nippon) data(prefectures) regions <- unique(prefectures$region) regions # Unix-like operating systems kakasi(regions) > Sys.setenv(ITAIJIDICTPATH = .set.dict("itaijidict")) : Mac OS X brewkakasi echo "kakashi" | nkf -e | kakasi -JH |kakasi -Ha





ITAIJIDICTPATH = Sys.setenv(ITAIJIDICTPATH="/usr/local/Cellar/kakasi/2.3.6/share/kakasi/itaijidict")
KANWADICTPATH = Sys.setenv(KANWADICTPATH="/usr/local/Cellar/kakasi/2.3.6/share/kakasi/kanwadict")


library(Nippon)
library(tidyverse)
data(prefectures)
regions <- unique(prefectures$region)
regions

kakasi(regions) %>%
data.frame(romaji=.) %>%
rownames_to_column(.,"kanji")

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 129f71bddc78d7ff27dc95e45118a99a