Displaying 20 results from an estimated 1000 matches similar to: "Paths in knitr"
2017 Jun 12
2
Paths in knitr
Hi Yihui,
Hi Duncan,
I corrected my typo. Unfortunately knitr did not find my plots in the
directory where they reside which is different from the Rmd document.
The documentation of knitr says:
base.dir: (NULL) an absolute directory under which the plots are generate
root.dir: (NULL) the root directory when evaluating code chunks; if NULL,
the directory of the input document will be used
2017 Jun 12
0
Paths in knitr
Will there be anything wrong if you do not set these options?
Regards,
Yihui
--
https://yihui.name
On Mon, Jun 12, 2017 at 2:24 AM, <G.Maubach at weinwolf.de> wrote:
> Hi Yihui,
> Hi Duncan,
>
> I corrected my typo. Unfortunately knitr did not find my plots in the
> directory where they reside which is different from the Rmd document.
>
> The documentation of knitr
2017 Jun 09
0
Paths in knitr
I'd say it is an expert-only option. If you do not understand what it
means, I strongly recommend you not to set it.
Similarly, you set the root_dir option and I don't know why you did it, but
it is a typo anyway (should be root.dir).
Regards,
Yihui
--
https://yihui.name
On Fri, Jun 9, 2017 at 4:50 AM, <G.Maubach at gmx.de> wrote:
> Hi Yi,
>
> many thanks for your reply.
2013 Jun 19
2
knitr without R studio
Hello folks,
I`m using knitr on R studio, which make it easy to use, but a coworker of
mine would like to run it on "simple" R. So I was wondering if you know what
is the equivalent of the button "knit HTML" in RStudio in R. I tried
knit2HTML(
<html>
<head>
<title></title>
</head>
<body style="background-color:white">
2012 Mar 28
2
Making Knitr work
Might not be the best place to ask, but i could get lucky..
I have setup an eclipse environment to write sweave files lately and wanted to switch to knitr. I could get it to work on easy files, but my earlier written sweave file fails to be knit properly.
Here is the error message:
Quitting from lines 273-276: Error in setwd(base.dir) : kann Arbeitsverzeichnis nicht wechseln (it says: cannot
2011 Dec 12
1
littler: Use for batch processing of data sets: How to pass filename?
Dear R folks,
I have several data sets I want to process automatically using R. I
found littler [1] and thought this will do the trick.
1. Read in data file to a data frame using `scan()`.
2. Do linear regression.
3. Write the data and the coefficients back to a file.
#!/usr/bin/env r
if (is.null(argv) | length(argv)!=1) {
cat("Usage:
2012 Sep 26
3
Broken Links on http://www.r-project.org
I was not sure who I should contact about this, so I am posting this here.
There are a few broken links on the R website.
1) http://www.r-project.org/search.html -> link to the Nabble R Forum. I belive the correct/new URL should be: http://r.789695.n4.nabble.com/
2) http://www.r-project.org/other-docs.html -> link to "Auswertung ?kologischer Daten". Not sure if there is a new
2012 Aug 08
3
help, please! matrix operations inside 3 nested loops
hello, this is my script:
#1) read in data:
daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt',
header=TRUE, sep="\t")
daten<-as.matrix(daten)
#2) create empty matrix:
indxind<-matrix(nrow=617, ncol=617)
indxind[1:20,1:19]
#3) compare cells to each other, score:
for (s in 3:34) { #walks though the matrix colum by colum, starting at
2012 May 01
0
knitr + markdown: simplemente útil
Hola:
Ya se ha comentado aquí algo sobre knitr, creo que la
alternativa a Sweave (al que le tengo un gran cariño).
La cosa va muy bien y lejos, os comento muy breve
y os adjunto dos ficheros para muestra.
Estoy buscando una forma de escribir potente y
ágil para que los alumnos trabaje al cien por cien
sin necesidad de aprender LaTeX (aqltugc).
Para eso había encontrado markdown pero
¿cómo hacer
2017 Sep 06
4
post_processor in rmarkdown not working
Dear all,
I'm trying to write a post_processor() for a custom rmarkdown format. The
goal of the post_processor() is to modify the latex file before it is
compiled. For some reason the post_processor() is not run. The
post_processor() does work when I run it manually on the tex file.
Any suggestions on what I'm doing wrong? Below is the relevant snippet of
the code. The full code is
2004 Jun 11
3
Einlesen von Daten unter R
Sehr geehrte Damen und Herren,
An der Fachhochschule Winterthur wurde f??r mich im Rahmen einer
Diplomarbeit (Prof. Ruckstuhl) ein R-Programm zur Auswertung von
IR-Spektren (line-shape-Analyse zur quantitativen Analyse von
Gasmischungen) entwickelt. Die Daten werden einer Excel-Tabelle
entnommen. Bisher werden die spektroskopischen Daten ??ber den Inhalt von
64 Kan??len ??ber die
2013 Oct 23
1
Scripting call to R-Studio compile PDF
Hey everyone,
I have several RStudio (.rnw) files that I am using a script to assemble
into a composite document. For this purpose, it would be helpful if the
script could automatcially make a call to whatever is called when a user
opens up one of these files and manually clicks "Compile PDF". Basically,
this would allow me to refresh all of the reports before assimilating their
2017 Sep 07
0
post_processor in rmarkdown not working
Are you sure that you want to read in the output_file in
text <- readLines(output_file, warn = FALSE)?
best regards,
Heinz
Thierry Onkelinx wrote/hat geschrieben on/am 06.09.2017 11:41:
> Dear all,
>
> I'm trying to write a post_processor() for a custom rmarkdown format. The
> goal of the post_processor() is to modify the latex file before it is
> compiled. For some
2012 May 04
1
add sessionInfo() option to "save"
Hi All,
I was wondering if there would be any interest in adding an option to the
"save" function in R that I think would be useful. I was thinking that it
might be useful to have an option that would generate a ".sessionInfo"
variable that contains the output of "sessionInfo()", and adds it to the
list of objects to be saved. This way, whenever an RData object is
2017 Sep 07
0
post_processor in rmarkdown not working
On 06/09/2017 5:41 AM, Thierry Onkelinx wrote:
> Dear all,
>
> I'm trying to write a post_processor() for a custom rmarkdown format. The
> goal of the post_processor() is to modify the latex file before it is
> compiled. For some reason the post_processor() is not run. The
> post_processor() does work when I run it manually on the tex file.
>
> Any suggestions on what
2016 Apr 26
3
Missing Values in Logical Expressions
Hi All,
I need to evaluate missing values in my data. I am able to filter these
values and do simple statistics on it. But I do need new variables based
on variables with missing values in my dataset:
Check_Kunde_2011 <- ifelse(is.na(Umsatz_2011) == TRUE & Kunde_2011 == 1,
1, 0)
Check_Kunde_2011 <- factor(Check_Kunde_2011, levels = c(1,0), labels =
c("Check",
2017 Jun 07
2
purrr::pmap does not work
Hi All,
I try to do a scatterplot for a bunch of variables. I plot a dependent
variable against a bunch of independent variables:
-- cut --
graphics::plot(
v01_r01 ~ v08_01_up11,
data = dataset,
xlab = "Dependent",
ylab = "Independent #1"
)
-- cut --
It is tedious to repeat the statement for all independent variables. Found
an alternative, i.e. :
-- cut --
mu
2012 Aug 21
2
Sweave: R chunk inside caption?
Hi Folks,
I'm surprised, but I didn't find this question addressed anywhere. I'd
like to generate a LaTeX caption with R code. I've tried the code
below, but I get the following TeX error:
! Argument of \@caption has an extra }.
<inserted text>
\par
l.21 }
Any thoughts? Perhaps I'll have to write the "\caption{}" text with R?
thanks!
2012 Feb 20
2
Computing plot size in Sweave
Sometimes you want to compute the physical size of a plot based on data.
In R itself this is no problem.
But is there a way to compute the values of height and width in S-weave, say:
<<graph,fig=TRUE,height=xx,width=yy>>=
where xx and yy are computed and not physically written in the document?
Bendix
______________________________________________
Bendix Carstensen
Senior