Я пытаюсь связать мой документ Rmarkdown с pdf, однако он продолжает выдавать следующее сообщение:
Error: Failed to compile R_Markdown.tex. See https://yihui.name/tinytex
/r/#debugging for debugging tips.In addition: Warning message:In
readLines(logfile) : incomplete final line found on
'R_Markdown.log'Execution halted
Это нормально, когда вы вяжете в html и word, но не в pdf, у меня установлен MiKTex споследние обновления, так в чем проблема?Я приложил свой код ниже:
---
title: 'Maths Skills 2: Recent advances in statistics project'
author: "Jamie Tse"
date: "28 March 2019"
output: pdf_document
---
#Part A: UK fishing Vessels
The goal of this part of the project is to provide a graphical representation of the geographical distribution of
UK fishing vessels under 10 metres in length.
## Creating a map of the UK using ggmap
I begin by loading the `tidyverse` and `ggmap` packages:
```{r,eval=FALSE}
library(ggmap)
library(tidyverse)
Затем я нашел подходящую ограничивающую рамку для Великобритании:
bbox <- c(-9.05, 48.77, 2.19, 61)
Затем, используя эту ограничивающую рамку, я создал карту UKmap
с помощью функции ggmap()
:
UKmap <- ggmap(get_map(location = bbox, source = "stamen", maptype = "toner"))
Чтение данных с судов-отправителей
После создания карты, на которой я буду наносить данные, я прочитал данные судовых судов и сохранил их.vessels
с использованием функции read.csv()
vessels <- read.csv("Jan_2019_Under_10m_vessel_list.csv")