vignette

How to put a link to another vignette in the same R package in a vignette

落爺英雄遲暮 提交于 2020-08-09 05:40:30
问题 I have a package on Bioconductor and I'm in the process of adding a second vignette to it. I want to link the second vignette to the first vignette, as one vignette is on the general workflow of the package and the second is on fine parameter tuning, for more advanced users. Is there a clean way to do it ? The only related topic that I found is this one : best way to link to a vignette from manual in an R package But it did not really helped me, Thanks for your help, Alexis 回答1: If you're

How to build a pdf vignette in R and RStudio

孤者浪人 提交于 2019-12-21 04:04:51
问题 I am new to writing R packages. I'm trying to learn how to make a vignette for my package. I have created a vignettes folder with a file "getting-started.Rmd" --- title: "WaterML Tutorial" author: "Jiri Kadlec" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Introduction to the WaterML R package} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ## Quick Start This simple example shows how to get started with the <my R package>. To build

PHP Imagemagick vignette

自作多情 提交于 2019-12-11 06:29:59
问题 How want to apply a vignette effect to an image using PHP with ImageMagik. I found this function but I'm not sure how to use it. Imagick::vignetteImage Thanks for your help! 回答1: Correct answer: read the docs. 回答2: Assuming you have the correct version of Image Magick and the PHP library installed: <?php $image = new Imagick(); $image->readImage($in); $image->vignetteImage ( float $blackPoint , float $whitePoint , int $x , int $y ) $image->writeImage($out); ?> 来源: https://stackoverflow.com

best way to link to a vignette from manual in an R package

為{幸葍}努か 提交于 2019-12-10 18:22:26
问题 I'm developing an R package, and I'm trying to make a link from the manual of the package to its vignette (a pdf). I've make this in the R function code, and it works: \link[=../doc/package.pdf]{package's User Manual} The problem is that the devtools::check() complains with a warning, which also causes a delay in the process of revision when uploading to CRAN... * checking Rd cross-references ... WARNING Missing link or links in documentation object 'package.Rd': '../doc/package.pdf' Is there

Include errors in R markdown package vignette

拜拜、爱过 提交于 2019-12-08 21:33:15
问题 I'm developing an R package and have a custom function which contains a if(condition) stop("Error message") conditional. I call this function in a package vignette with the intention of generating the error message and including that in the vignette. However, this is causing vignette building to fail. How can I force vignette building to proceed even when the code generates error messages, and retain those error messages in the vignette document? 回答1: The knitr chunk options documentation

R CMD INSTALL --build package --> “vignettes missing”

折月煮酒 提交于 2019-12-08 19:34:22
问题 Problem: C:\>Rcmd.exe INSTALL --build --library=C:/Users/local_aphalo/Documents/R/win-library/3.0 photobiology C:\>Rcmd.exe INSTALL --build --library=C:/Users/local_aphalo/Documents/R/win-library/3.0 photobiology_0.2.6.tar.gz The first command (as used by RStudio) builds a ZIP file that is missing the vignettes. The second command builds a ZIP that includes the vignettes. Using R CMD instead of Rcmd.exe makes no difference. The .tar.gz was built immediately before attempting to build the .zip

JSTL, Beans, and method calls

别等时光非礼了梦想. 提交于 2019-12-04 17:53:44
问题 I'm working on a JSP where I need to call methods on object that come from a Bean. The previous version of the page does not use JSTL and it works properly. My new version has a set up like this: <jsp:useBean id="pageBean" scope="request" type="com.epicentric.page.website.PageBean" /> <c:set var="pageDividers" value="<%= pageBean.getPageDividers() %>" /> <c:set var="numColumns" value="${pageDividers.size()}" /> The variable pageDividers is a List object. I'm encountering this issue: when I

How to build a pdf vignette in R and RStudio

六月ゝ 毕业季﹏ 提交于 2019-12-03 12:32:17
I am new to writing R packages. I'm trying to learn how to make a vignette for my package. I have created a vignettes folder with a file "getting-started.Rmd" --- title: "WaterML Tutorial" author: "Jiri Kadlec" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Introduction to the WaterML R package} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ## Quick Start This simple example shows how to get started with the <my R package>. To build the vignette I use the command: devtools::build_vignettes() Then I run Rcmd.exe INSTALL my_package ,

JSTL, Beans, and method calls

那年仲夏 提交于 2019-12-03 10:43:36
I'm working on a JSP where I need to call methods on object that come from a Bean. The previous version of the page does not use JSTL and it works properly. My new version has a set up like this: <jsp:useBean id="pageBean" scope="request" type="com.epicentric.page.website.PageBean" /> <c:set var="pageDividers" value="<%= pageBean.getPageDividers() %>" /> <c:set var="numColumns" value="${pageDividers.size()}" /> The variable pageDividers is a List object. I'm encountering this issue: when I ask for pageDivider 's size, an exception is thrown. I know this is a simple JTSL error -- what am I