R doesn't recognize Pandoc Linux Mint -
R doesn't recognize Pandoc Linux Mint -
i asked related question: check if programme installed
but refraining answering until i've tested solutions myself on 3 systems. can pandoc work within r on windows machine on linux error/response each method r terminal:
1:
> system('pandoc -v') sh: 1: pandoc: not found
2:
> mypaths <- c("pandoc", + "~/.cabal/bin/pandoc", + "~/library/haskell/bin/pandoc", + "c:\\progra~1\\pandoc\\bin\\pandoc") > sys.which(mypaths) pandoc ~/.cabal/bin/pandoc "" "/home/tyler/.cabal/bin/pandoc" ~/library/haskell/bin/pandoc c:\\progra~1\\pandoc\\bin\\pandoc "" ""
3:
> sys.which("pandoc") pandoc ""
you may think don't have pandoc installed , on path believe do. clean terminal session:
> tyler@trinker ~ $ echo $path > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tyler/.cabal/bin
and
tyler@trinker ~ $ pandoc -v pandoc 1.10.1 compiled citeproc-hs 0.3.7, texmath 0.6.1.3, highlighting-kate 0.5.3.6. syntax highlighting supported next languages: actionscript, ada, alert, alert_indent, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d, diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang, fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc, javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell, lua, makefile, mandoc, matlab, maxima, metafont, mips, modula2, modula3, monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave, pascal, perl, php, pike, postscript, prolog, python, r, relaxngcompact, rhtml, ruby, scala, scheme, sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl, texinfo, verilog, vhdl, xml, xorg, xslt, xul, yacc, yaml copyright (c) 2006-2013 john macfarlane web: http://johnmacfarlane.net/pandoc free software; see source copying conditions. there no warranty, not merchantability or fitness particular purpose.
how can create r on linux mint recognize pandoc? (i'm newer linux)
i having issues well. installed pandoc via cabal well. if install via apt-get there shouldn't issue. if launched r terminal had no issues attempting observe pandoc within rstudio gave troubles. reason rstudio doesn't read in bash environment variables if modify path in .bashrc rstudio won't observe that. solution modify path via .profile instead.
add bottom of .profile file , remove path modfication in .bashrc file , should able recognize pandoc within r.
if [ -d "$home/.cabal/bin" ] ; path="$path:$home/.cabal/bin" fi
r pandoc mint
Comments
Post a Comment