Displaying 20 results from an estimated 1000 matches similar to: "accessing data by packagename::dataname from within package code fails."
2018 Jul 02
4
Parametrized Vignettest in R packages
Hello,
I have a package which includes some parameterized r-markdown report
which I would also like to build as package vignettes.
Is there a way to run the parameterized vignette creation with the
package build or package check?
Thank you
--
Witold Eryk Wolski
2018 Oct 05
1
unable to load shared object
Thanks for asking.
The path where R tries to load the dll from does not exist I think (or
the install process deletes it after the error - might this be the
case?):
C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/grpc/libs/x64/grpc.dll'
When I am checking after the error that path is only valid up to:
C:/Users/wewol/OneDrive/Documents/R/win-library/3.5/
So maybe (?) the install process
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents
in the main Sweave document.
How can I do it?
So I was thinking .... to use Latex features :
\newif\ifpaper
\ifpaper
\SweaveInput{"my1.Rnw"}
\else
\SweaveInput{"my2.Rnw"}
\fi
But how do I set paper to true or false given an \Sexpr ??
\papertrue % or
\paperfalse
Any ideas?
cheers
--
Witold
2018 Oct 02
1
How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win
Sorry for bothering you
I am trying to build the R grpc package on windows:
https://github.com/nfultz/grpc
against an MSYS2 build of grpc.
when running devtools::install() I am getting the following error:
C:/msys64/mingw64/include/grpc/impl/codegen/port_platform.h:47:2:
error: #error "Please compile grpc with _WIN32_WINNT of at least 0x600
(aka Windows Vista)"
#error \
^
Which,
2012 Nov 08
1
sweave xtable and driver RweaveHTML
Hi,
So far I used Sweave to create pdf reports. I used xtable to create some
tables in the report.
But now I would like to use the same snw file to generate an HTML version.
The xtable output breaks the RweaveHTML driver.
library(R2HTML)
Sweave('analyseLFQ.Snw', driver = RweaveHTML)
Error in match.arg(options$results, c("Robj", "html", "hide")) :
2018 Jul 09
2
Parametrized Vignettest in R packages
On 09/07/2018 3:24 PM, Witold E Wolski wrote:
> Dear Yihui,
>
> Thank you for the valuable questions.
>
> sample_analysis is a "tibble" while
> configuration is an "R6" class.
> But I also have parametrized reports where I pass R reference classes
> as arguments.
>
> This is the Rmd yaml params part corresponding to the error message.
>
>
2010 Aug 09
3
ESS question. How to get rid of ess-smart-underscore?
Hi,
ESS replaces "_" by "<-". How can I switch off this feature?
I need to be able to type the underscore
Thanks
Eryk
--
Witold Eryk Wolski
Heidmark str 5
D-28329 Bremen
tel.: 04215261837
2006 May 25
2
qqmath - Lattice error
Hi,
Don't have a clue what teh following error message
generated by this function call:
qqmath( ~val|ind,data = xx
,distribution = function(p){ qt(p,df=20)}
,ylab="Sample Quatinles"
,xlab="Theoretical Quantiles"
,panel=function(x,y)
{
panel.qqmathline(y
, distribution=function(p) qt(p,df=20)
2004 Oct 21
3
error in plot.dendrogram (PR#7300)
Hi,
hres <- hclust(smatr,method="single")
hresd<-as.dendrogram(hres)
as.dendrogram(hres)
`dendrogram' with 2 branches and 380 members total, at height 2514.513
plot(hresd,leaflab="none") #<-error here.
#the plotted dendrogram is incomplete. The x axis is not drawn.
#The interested reader can download the
save(hresd,file="hres.rda")
#from the
2018 Jul 02
2
Parametrized Vignettest in R packages
Hello,
Thank you for the questions as well as remaining me of the default
parameters in the yaml session.
Indeed this seems to be the solution.
But how would I assign package data as a default parameter?
So originally I thought to render the markdown with :
<code>
data(sample_analysis)
data(skylineconfig)
x <- rmarkdown::render("report.Rmd", output_format =
2018 Jul 09
2
Parametrized Vignettest in R packages
Dear Duncan,
Following your advice (Thank you for it) I did include into the vignettes
params:
configuration: !r get(data(sample_analysis))
data: !r get(data(skylineconfig))
And everything seemed (see below) to work fine.
devtools::build_vignettes() builds the vignettes.
Runs with NO error. By this the .Rmd file, html file and corresponding
.R files is being placed into the inst/doc
2004 Nov 24
12
scatterplot of 100000 points and pdf file format
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with acrobat as document
figure the quality is bad.
Anyone knows a way to reduce the size but keep the quality?
/E
--
Dipl. bio-chem. Witold Eryk Wolski
MPI-Moleculare
2018 Jul 09
3
Parametrized Vignettest in R packages
So far you haven't provided a reproducible example yet. I wonder what
exactly the object `sample_analysis` is. Sounds like it is an
environment. If that is the case, devtools::build_vignettes() will
tangle (for the meaning of "tangle", see ?tools::buildVignette) your
vignette into an invalid R script. Environments cannot be represented
via dput(), so knitr's purl() (eventually
2004 Apr 30
2
./configure --prefix and R_LIBS
Hi!
I am installing R in non standard directory.
./configure --prefix=/non/standard/directory
The installation works fine.
But after starting R i get
.libPaths()
/usr/lib/R/library
but they cant be there of course!
Have I to set some additional switches during config?
Eryk
Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin 'v'
tel:
2004 Sep 28
5
Bug? using { as a function in lapply
This seems like a bug to me. Can someone verify this?
First we define a function f that returns its second argument and
lapply it to 1:2 using 9 as the second argument and all seems well.
Note that "{" as a function does the same thing as f, as illustrated
with f(1,9) and "{"(1,9); however, when we attempt to use "{" in the
very same way we used f in lapply,
2004 Jan 22
4
customising installed libraries
hello
I am returning to some libraries that I had previously customised by amongst
other things adding additional functions. I had simply typed these new
functions into the file in library/R/thelibrary. These however do not seem
to be loaded now as they previously were under older versions of R.
What's changed and what do i need to do?
Thanks
Stephen
2002 May 02
3
Building own packages on Windows 2000!
Hi!
I encountered some things trying to build own packages under Windows
2000 for which i found no answer in the documentation.
First.
1. I do not found the rcmd.exe in the bin directory of R_HOME.
I installed R using the setup.exe
2. I updated the R intatllation with one of the zip files. (rw1041sp.zip)
now i had the rcmd.exe in the bin.
3. I do not found any hint in the docu that perl is
2002 Jul 26
5
Is there a function for finding local extrema.
I have a vector with about 100.000 values representing a quite regular
function (sinusoid like).
I would like to find all local maxima of this function (should be about
4000). Is there a native routine for R?
Thanks in advance
Eryk.
--
_|_ \|/ \|/ Eryk Witold Wolski tel :0049-(0)30-8413-1543 w w
?v? 'v? \'v'/ MPI Moleculare Genetik fax :0049-(0)30-8413-1139 |
2003 Jul 10
2
XML Package.
Hi!
I have installed the new R on windows.
I wanted to reinstall the XML package. I am not able to find the XML.zip anymore. I am quite shure that they where a windows binary version.
Has anyone old XML windows binary?
Eryk
Dipl. bio-chem. Eryk Witold Wolski @ MPI-MG Dep. Vertebrate Genomics
Ihnestrasse 73 14195 Berlin 'v'
tel: 0049-30-84131285 / \
mail:
2005 Mar 03
3
Need suggestions for plotting 3D plot
Hi Everybody,
I am a newbie in R. I have a data in the form of a
matrix which I want to make some 3D plots using R.
There is some functions for instance hist() for 2D
plots, but I cant find any function for 3D plots. Is
there any function available in R for 3D plots? If so,
is there any documention available on internet so that
I can go through.
With regards,
Soumyadeep