Hi, I am attempting to build my revised 'iemisc' package, but I am having trouble building one of the vignettes.

I am receiving the following error message:

* creating vignettes ...Error in find_vignette_product(name, by = "weave", dir = docdir, engine = engine) : Failed to locate ‘weave’ output file ‘Engineering_Survey_Examples.pdf’ or ‘Engineering_Survey_Examples.html’ for vignette with name ‘Engineering_Survey_Examples’ and engine ‘knitr::rmarkdown’.


This is odd because the following command correctly produces the PDF of the document:

library("rmarkdown")
render("/vignettes/Engineering_Survey_Examples.Rmd", pdf_document(latex_engine = "xelatex"))

I have attached the .Rmd file for the vignette to this e-mail.

Thank you.

Irucka Embry

--
--
No fear, Only Love! / ¡No temas, solamente amor!
-Irucka Ajani Embry, 15 March 2020

Family Partners:
http://www.sustainlex.org/
https://www.schoolingsolutions.com/

---------------------------------------------------------------------------------------------------------------

The business collaboration between EConsulting (tm)
[https://www.econsultingllc.org/] and EcoC^2S, is Getting Back to Nature.

Getting Back to Nature LocalHarvest --
https://www.localharvest.org/getting-back-to-nature-M73453
Getting Back to Nature -- https://www.gettingback2nature.farm/

-- Irucka and his twin brother, Obiora, are featured in the Middle
Tennessee Local Table Magazine Annual issue. The article discusses their
family farm history and the current work that they are doing under Getting Back to Nature. The full magazine can be found here [the article begins on
page 18 of the PDF document]:

https://media.gettingback2nature.farm/pdf/LocalTable_ANNUAL_2020_lo_res.pdf

-- Obiora and Irucka were interviewed separately in early 2020 for the
Natural Resources Defense Council's (NRDC) "Regenerative Agriculture: Farm Policy for the 21st Century: Policy Recommendations to Advance Regenerative
Agriculture" report written By Arohi Sharma, Lara Bryant, and Ellen Lee.
The PDF report is available below:

https://www.nrdc.org/sites/default/files/regenerative-agriculture-farm-policy-21st-century-report.pdf

EcoC2S -- https://www.ecoccs.com/
Principal, Irucka Embry, EIT

Services:
Growing Food
Healthy Living Mentor
Data Analysis with R
R Training
Chemistry and Mathematics Tutoring
Free/Libre and Open Source Software (FLOSS) Consultation
---
title: "iemisc: Engineering Survey Examples"
author: "Irucka Embry, E.I.T. (EcoC²S)"
date: "`r Sys.Date()`"
lang: en-us
urlcolor: blue
output:
  rmarkdown::pdf_document:
    highlight: kate
    toc: true
    latex_engine: xelatex
vignette: >
  %\VignetteIndexEntry{iemisc Engineering Survey Examples}
  %\VignetteEngine{knitr::rmarkdown}
  \usepackage[utf8]{inputenc}
---

\bigskip

# Replicate the R code

Note: If you wish to replicate the R code below, then you will need to copy and 
paste the following commands in R first (to make sure you have the package and 
its dependencies):  

```{r eval = FALSE, tidy = TRUE}
install.packages("iemisc")
# install the package and its dependencies
```

\bigskip
\bigskip

```{r, warning = FALSE, message = FALSE, tidy = TRUE}
# load the required package
library("iemisc")
```

\bigskip
\bigskip

# Midpoint

## Examples

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

Northing_begin <- 283715.8495
Easting_begin <- 1292428.3999

Northing_end <- 303340.6977
Easting_end <- 1295973.7743

project_midpoint(Northing_begin, Easting_begin, Northing_end, Easting_end, 
units =
"survey_ft", location = "TN", output = "advanced")




# Tennessee (TN) Northing and Easting in meters

Northing2 <- c(232489.480, 234732.431)

Easting2 <- c(942754.124, 903795.239)

dt4A <- project_midpoint(Northing2[1], Easting2[1], Northing2[2], Easting2[2],
"meters", "TN", output = "advanced")
dt4A
```

\bigskip
\bigskip
\bigskip
\bigskip

# Engineering Survey 1 (engr_survey)

## Example 1

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

# Tennessee (TN) Northing and Easting in US Survey foot
Northing3 <- c("630817.6396", "502170.6065", "562,312.2349", "574,370.7178")

Easting3 <- c("2559599.9201", "1433851.6509", "1,843,018.4099", 
"1,854,896.0041")

dt3A <- engr_survey(Northing3[1], Easting3[1], "survey_ft", "TN", output =
"basic", utm = 1)
dt3A # first set of Northing, Easting points


dt3B <- engr_survey(Northing3[2], Easting3[2], "survey_ft", "TN", output =
"basic", utm = 0)
dt3B # second set of Northing, Easting points


dt3C <- engr_survey(Northing3[3], Easting3[3], "survey_ft", "TN", output =
"basic", utm = 1)
dt3C # third set of Northing, Easting points


dt3D <- engr_survey(Northing3[4], Easting3[4], "survey_ft", "TN", output =
"basic", utm = 0)
dt3D # fourth set of Northing, Easting points
```

\bigskip
\bigskip

## Example 2

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

# Tennessee (TN) Northing and Easting in meters

Northing4 <- c(232489.480, 234732.431)

Easting4 <- c(942754.124, 903795.239)

dt4A <- engr_survey(Northing4[1], Easting4[1], "meters", "TN", output = 
"table", utm = 0)
dt4A


dt4B <- engr_survey(Northing4[2], Easting4[2], "meters", "TN", output = 
"table", utm = 0)
dt4B
```

\bigskip
\bigskip
\bigskip
\bigskip

# Engineering Survey 1 Batch Mode (engr_survey_batch)

## Examples

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

# Tennessee (TN) Northing and Easting in meters

Northing2 <- c(232489.480, 234732.431)

Easting2 <- c(942754.124, 903795.239)

dt4 <- engr_survey_batch(Northing2, Easting2, "meters", "TN", output = "table")
dt4
```

\bigskip
\bigskip
\bigskip
\bigskip

# Engineering Survey 2 (engr_survey2)

## Examples

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

station5 <- "516+64.10"
station6 <- "511+29.10"

engr_survey2(station5, station6, units1 = "foot", units2 = "kilometers")


station7 <- "303+91.00"
station8 <- "299+41.00"

engr_survey2(station7, station8, units1 = "meters", units2 = "foot")



station9 <- "43+50.00"
station10 <- "52+00.00"

engr_survey2(station9, station10, units1 = "foot", units2 = "mile")
```

\bigskip
\bigskip
\bigskip
\bigskip

# Engineering Survey 3 (engr_survey3)

## Example

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

engr_survey3(23, station_distance = 100, units = "survey_mile", output = 
"numeric")
```

\bigskip
\bigskip
\bigskip
\bigskip

# Engineering Survey 4 (engr_survey4)

## Example

```{r, warning = FALSE, message = FALSE, tidy = TRUE}

engr_survey4(1394.32, "45+43.12", units = "kilometers")
```

\bigskip
\bigskip
\bigskip
\bigskip

# Conversion of Latitude/Longitude Coordinates to Engineering Survey 
Measurements (engr_survey_reverse)

```{r, warning = FALSE, message = FALSE, tidy = TRUE}
# Tennessee

lat <- 35.8466965

long <- -088.9206794

dt1A <- engr_survey_reverse(lat, long, units = "survey_ft", location = "TN", 
output =
"table", utm = 0)
dt1A



# Kentucky

lats <- "37'50'21.5988''N"
longs <- "84'16'12.0720'W"

dt2B <- engr_survey_reverse(lats, longs, "foot", "KY", output = "table", utm = 
0)
dt2B
```

\bigskip
\bigskip
\bigskip
\bigskip

# EcoC²S Links

EcoC²S Home -- https://www.ecoccs.com/  
About EcoC²S -- https://www.ecoccs.com/about_ecoc2s.html  
Products -- https://www.questionuniverse.com/products.html  
EcoC²S Media -- https://www.ecoccs.com/media.html  
EcoC²S Resources -- https://www.ecoccs.com/resources.html  
R Trainings and Resources provided by EcoC²S (Irucka Embry, E.I.T.) -- 
https://www.ecoccs.com/rtraining.html  

\bigskip
\bigskip

# Copyright and License

All R code written by Irucka Embry is distributed under the GPL-3 (or later) 
license, see the [GNU General Public License {GPL} 
page](https://www.gnu.org/licenses/gpl-3.0.html).  

All written content originally created by Irucka Embry is copyrighted under the 
Creative Commons Attribution-ShareAlike 4.0 International License. All other 
written content retains the copyright of the original author(s).  


```{r, echo = FALSE, out.width = '100%'}
linguisticsdown::include_graphics2("https://i.creativecommons.org/l/by-sa/4.0/88x31.png";)
```

This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 
International License](http://creativecommons.org/licenses/by-sa/4.0/).  
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to