R パッケージの bibtex エントリをテキスト ファイルに書き込もうとしていますが、エラーが発生します。
pkgs <- unique(installed.packages()[,1])
bibs <- lapply(pkgs, function(x) try(citation(x)))
lapply(bibs, write, "bibs.txt", append=TRUE, ncolumns=1000)
Error in cat(list(...), file, sep, fill, labels, append) :
argument 1 (type 'list') cannot be handled by 'cat'
私は何を間違っていますか?