Displaying 20 results from an estimated 1000 matches similar to: "running unit tests on the stringr package"
2015 Apr 20
0
running unit tests on the stringr package
Dear Raju
I agree to Dirk that this is not really the best place for these matters, but
as I got curious, I checked and found you should use test_package() and not
test_dir(), as the latter does not load unexported functions of the package
(such as check_string()) that may occur in the tests.
For packaging of r-cran-stringr, it is probably most efficient to file a bug
report there because of
2015 Apr 13
2
list of available R packages
This is a very minor point. But thought I would bring it to your
attention anyway...
According to http://cran.r-project.org/bin/linux/debian/ , the list of
available R packages can be found by
apt-cache search ^r-.*
This seems to work in bash but not in zsh. As a work around, I found out that
apt-cache search "^r-.*"
works in both zsh and bash.
--
Kamaraju S Kusumanchi |
2014 Dec 21
2
How to get fortunes in R
I was going through
http://dirk.eddelbuettel.com/papers/r_package_development_nov2014.pdf
and found this on pg-3
> fortunes::fortune(92)
##
## If you don't go with R now, you will someday.
## -- David Kane (on whether to use R or S-PLUS)
## R-SIG-Finance (November 2004)
However, when I tried it on my machine, I get
rajulocal at hogwarts:~/work/r_programming$ R -q
>
2016 Apr 19
3
installation of dplyr
Hello,
I am getting a fresh CentOS 6.7 machine set up with all of the goodies for R 3.2.3, including dplyr package. I am unable to successfully install it. Below I show the failed installation using utils::install.packages() and then again using devtools::install_github(). Each yields an error similar to the other but not quite exactly the same - the error messages sail right over my head.
I
2016 Apr 19
0
installation of dplyr
You normally see these errors when compiling on a vm that has very
little memory.
Hadley
On Tue, Apr 19, 2016 at 2:47 PM, Ben Tupper <btupper at bigelow.org> wrote:
> Hello,
>
> I am getting a fresh CentOS 6.7 machine set up with all of the goodies for R 3.2.3, including dplyr package. I am unable to successfully install it. Below I show the failed installation using
2018 Sep 18
2
Suggested Patch: Adding commas to list of packages after R CMD check
Dear R-devs,
Scenario:
When checking a package via `R CMD check package_tar.ball`, required / suggested packages may be missing. R subsequently returns a list of packages that are missing (delimited by spaces).
Example:
```
R CMD check glmSparseNet_0.99.13.tar.gz
* using log directory '/home/ubuntu/Bioconductor/glmSparseNet.Rcheck'
* using R Under development (unstable) (2018-06-06
2013 Feb 03
1
problem in installing reshape2 (urgent)
Dear R users,
In order to install reshape2 package, I gave the following command:
install.packages("reshape2",dep=TRUE)
However, it is not getting installed.
The message that I am getting is:
Warning: dependencies ‘plyr’, ‘stringr’, ‘testthat’ are not available
trying URL '
http://ftp.ctex.org/mirrors/CRAN/src/contrib/reshape2_1.2.2.tar.gz'
Content type
2017 Sep 17
2
R-devel r73293 and the testthat package
Hello,
Windows R-devel no longer lets me use testthat even though the CRAN checks are pretty much clean. I have copied my session output below.
Will
R Under development (unstable) (2017-09-16 r73293) -- "Unsuffered Consequences"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO
2015 Feb 08
2
Testthat and global environments in R packages on CRAN
Hi!
Im currently developing an R package to automatically give students
feedback on programming assignments in R. I use the testthat package as an
engine for the unit testing and do a wrapper to make the automatic marking
easy for the students.
One function (called mark_my_file() ) will mark the students lab file using
testthat tests and a new (simple) reporter. The problem is that I need to
do
2015 May 04
2
Print output during long tests?
I am the author of R package animint which uses testthat for unit tests.
This means that there is a single test file (animint/tests/testthat.R) and
during R CMD check we will see the following output
* checking tests ...
Running ?testthat.R?
I run these tests on Travis, which has a policy that if no output is
received after 10 minutes, it will kill the check. Because animint's
testthat
2013 Apr 10
3
Stringr Package
Hi Group,
I have a question on Stringr package
I have a table like this
X Y
ab su - di
ac pi - tu
ad tu - tu
I want output like this
X Y
ab su
ab di
ac pi
ac tu
ad tu
ad tu
I am wondering if this operation can be done using stringr package (only)
?
[[alternative HTML version deleted]]
2010 Aug 25
0
stringr: version 0.4
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that are easy to
2010 Aug 25
0
stringr: version 0.4
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that are easy to
2011 Jul 01
0
stringr 0.5
# stringr
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that
2011 Jul 01
0
stringr 0.5
# stringr
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that
2011 Dec 09
0
stringr 0.6
# stringr
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that
2011 Dec 09
0
stringr 0.6
# stringr
Strings are not glamorous, high-profile components of R, but they do
play a big role in many data cleaning and preparations tasks. R
provides a solid set of string operations, but because they have grown
organically over time, they can be inconsistent and a little hard to
learn. Additionally, they lag behind the string operations in other
programming languages, so that some things that
2023 Jan 10
1
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
On 10/01/2023 4:07 p.m., Sebastian Meyer wrote:
> Am 10.01.23 um 21:28 schrieb Duncan Murdoch:
>> On 10/01/2023 2:05 p.m., Ivan Krylov wrote:
>>> On Tue, 10 Jan 2023 16:27:53 +0000
>>> RICHET Yann <yann.richet at irsn.fr> wrote:
>>>
>>>> In facts, 10 threads are asked by armadillo for some LinAlg, which
>>>> backs to two threads as
2023 Jan 11
2
rhub vs. CRAN fedora-*-devel, using armadillo & slapack
Thank you all, for these advices.
So I try to fix OMP_THREADS, cleanup tests, and display explicitly what test is running by moving in tests/ instead of tests/testthat/...
Next step should be to investigate blocking test using a reporter (maybe "list").
For now, waiting for CRAN results...
Yann
-----Message d'origine-----
De?: Duncan Murdoch <murdoch.duncan at gmail.com>
2013 Jul 15
0
ayuda con stringr
Hola,
Una forma de hacerlo es así...
Pensando en que el separador de cada palabra es el "." y que la provincia
es la cuarta palabra.
> cad.ena <- c(
+ 'm.1.p.Álava'
+ ,'m.1.p.Albacete'
+ ,'m.2.p.Alicante'
+ ,'m.1.p.Almería'
+ ,'m.3.p.Asturias'
+ ,'m.1.p.Ávila'
+ ,'m.1.p.Badajoz'
+ ,'m.1.p.Baleares (Illes)'
+