0

I am trying to compile a code in LaTeX (the code is prepared by knitr in R). In RStudio everything seems to be OK:

Writing to file Trial.tex
Processing code chunks with options ...
 1 : keep.source term verbatim (Trial.Rnw:48)
 2 : keep.source term verbatim (label = setup, Trial.Rnw:59)
Loading required package: carData

Attaching package: 'dplyr'

The following object is masked from 'package:car':

    recode

The following objects are masked from 'package:data.table':

    between, first, last

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union


Attaching package: 'kableExtra'

The following object is masked from 'package:dplyr':

    group_rows


Attaching package: 'gridExtra'

The following object is masked from 'package:dplyr':

    combine

corrplot 0.84 loaded
ResourceSelection 0.3-4      2019-01-08
 3 : keep.source term hide (Trial.Rnw:83)
 4 : keep.source term verbatim pdf  (Trial.Rnw:99)
 5 : keep.source term verbatim pdf  (Trial.Rnw:117)
 6 : keep.source term verbatim pdf  (Trial.Rnw:123)
 7 : keep.source term tex (Trial.Rnw:129)
 8 : keep.source term tex (Trial.Rnw:138)
 9 : keep.source term verbatim pdf  (Trial.Rnw:146)
10 : keep.source term hide (Trial.Rnw:153)
11 : keep.source term hide (Trial.Rnw:166)
12 : keep.source term verbatim (Trial.Rnw:179)
13 : keep.source term tex (Trial.Rnw:182)
14 : keep.source term verbatim (Trial.Rnw:188)
15 : keep.source term tex (Trial.Rnw:191)
16 : keep.source term verbatim (Trial.Rnw:195)
17 : keep.source term tex (Trial.Rnw:198)
18 : keep.source term verbatim (Trial.Rnw:203)
19 : keep.source term tex (Trial.Rnw:214)
The following objects are masked from wcgs (pos = 3):

    age0, arcus0, behpat0, chd69, chol0, dbp0, dibpat0, height0, id,
    ncigs0, sbp0, time169, typechd, weight0

20 : keep.source term tex (Trial.Rnw:222)
21 : keep.source term verbatim (Trial.Rnw:230)
22 : keep.source term verbatim (Trial.Rnw:234)
23 : keep.source term verbatim (Trial.Rnw:238)
24 : keep.source term verbatim (Trial.Rnw:242)
25 : keep.source term verbatim (Trial.Rnw:251)
26 : keep.source term tex (Trial.Rnw:262)

You can now run (pdf)latex on 'Trial.tex'
By�o 50 lub wi�cej ostrze�e� (u�yj 'warnings()' aby zobaczy� pierwsze 50)
Running pdflatex.exe on Trial.tex...failed
Error running C:/PROGRA~1/MIKTEX~1.9/miktex/bin/x64/pdflatex.exe (exit code 1)

After this action two folders in TeX are created: Trial and Trial-concordance. Unfortunately, whenether I am trying to compile the first of second code, there's an error

File `Sweave.sty' not found. \begin

Both of the files are in the same folder (I don't know if it's neccesary, rather not). I would strongly appreciate any help.

0 Answers0