When I run the R CMD check MYpackagePATH form a terminal on the package directory, then the error said that
! LaTeX Error: File `inconsolata.sty' not found.
So, I download the file inconsolata.zip. But I am not sure where should I put the file.
tex/latexsubdirectory of TEXMFLOCAL. Otherwise, put it where ever you like and add the directory to TEXINPUTS. (To find the TEXMFLOCAL usekpsewhich -var TEXMFLOCALfrom the command-line. You set TEXNPUTS in your.bashrcfile or equivalent.) – Feb 21 '19 at 06:58inconsolatais a standard package which is provided by both MiKTeX and TeX Live, so you can use these TeX distributions to installinconsolatainstead of (much more difficult) installing manually. – Feb 21 '19 at 06:59inconsolata.styasC:\texlive\texmf-local\tex\latex\insconsolata.sty. Is it OK ? – Camford Oxbridge Feb 21 '19 at 08:13R CMD checkalso launched the same error... – Camford Oxbridge Feb 21 '19 at 10:53Rd.sty. I put theRd.styinC:\texlive\texmf-local\tex\latex\Rd.stybut TeX works and R studio cannot reflect its existence, But if I putRd.styin the same directory including TeX file, then it goes well. So, I cannot understand why TeXworks cannot detect the sty files. – Camford Oxbridge Feb 24 '19 at 06:37