Displaying 20 results from an estimated 11000 matches similar to: "developing package: dealing with namespaces"
2024 May 03
1
R CMD check vs RStudio check
? Fri, 3 May 2024 19:45:08 +0000
"Boylan, Ross via R-help" <r-help at r-project.org> ?????:
> & $R CMD check .
> * checking for file './DESCRIPTION' ... ERROR
> Required fields missing or empty:
> 'Author' 'Maintainer'
You're checking a source package directory. This could work, but it's
much easier and more reliable to (1) build
2024 May 10
1
R CMD check vs RStudio check
Ivan, thank you for the tips; they allowed me to move on to the next problems.
By building the tar file first and checking it later, and fixing several other problems I got
R CMD check to work. It does *not* delete inst/doc. It also does not run boostrap.R,
as far as I can tell, presumably because only devtools does.
Check within RStudio continues to delete inst/doc, so this behavior is
2016 Jul 12
3
Forking and adapting an R package
Hello.
I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
pretty lost (from a workflow point of view). I am using RStudio and Hadley's
devtools.
So I forked the repo I want to adapt: https://github.com/grssnbchr/hexbin and
cloned it using RStudio (I created a new project).
2016 Jul 12
3
Forking and adapting an R package
Hello.
I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
pretty lost (from a workflow point of view). I am using RStudio and Hadley's
devtools.
So I forked the repo I want to adapt: https://github.com/grssnbchr/hexbin and
cloned it using RStudio (I created a new project).
2016 Jun 14
5
new function to tools/utils package: dependencies based on DESCRIPTION file
Hi all,
Packages tools and utils have a lot of useful stuff for R developers.
I find one task still not as straightforward as it could. Simply to
extract dependencies of a package from DESCRIPTION file (before it is
even installed to library). This would be valuable in automation of CI
setup in a more meta-data driven way.
The simple function below, I know it is short and simple, but having
it to
2016 Jul 12
2
[R] Forking and adapting an R package
On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote:
> Hello.
>
> I'm trying to adapt the package ?hexbin? to suit my needs. This is the first
> time I do this. I've read a bit through Hadley's ?R packages?, but now I'm
> pretty lost (from a workflow point of view). I am using RStudio and Hadley's
> devtools.
>
> So I forked the repo I want to
2016 Jun 16
3
new function to tools/utils package: dependencies based on DESCRIPTION file
Dear Joris,
So it does looks like the proposed function makes a lot sense then, isn't it?
Cheers,
Jan
On 16 June 2016 at 08:37, Joris Meys <jorismeys at gmail.com> wrote:
> Dear Jan,
>
> It is unavoidable to have OS and R dependencies for devtools. The building
> process for packages is both OS and R dependent, so devtools has to be too
> according to my understanding.
2024 May 03
1
R CMD check vs RStudio check
I am trying to figure out why checking my package is deleting my inst/doc/ directory when I do it in RStudio. Along the way I've hit another puzzle.
In RStudio the check runs and is mostly OK, aside from the deletion. But when I try with vanilla R, the check fails almost immediately:
-------------------------powershell---------------------------
PS C:\Users\rdboylan\Documents\BP\pimex>
2013 Dec 12
2
Strategies for keeping autogenerated .Rd files out of a Git tree
Hi
Quite a few R packages are now available on GitHub long before they
appear on CRAN, installation is simple thanks to
devtools::install_github(). However, it seems to be common practice to
keep the .Rd files (and NAMESPACE and the Collate section in the
DESCRIPTION) in the Git tree, and to manually update it, even if they
are autogenerated from the R code by roxygen2. This requires extra
2010 Nov 15
2
Trying to understand the search path and namespaces
Hi all,
I'm trying to understand how the search path and namespaces interact.
For example, take the devtools package which suggests the testthat
package. Here's what the search path looks like after I load each of
those packages:
> library(devtools)
> search()
[1] ".GlobalEnv" "package:devtools" "package:stats"
[4]
2016 Nov 17
1
new function to tools/utils package: dependencies based on DESCRIPTION file
Hi Michael,
Are you willing to accept patch for this? I'm already using this and
few related functions for a while, it plays well. I could wrap it as
patch to utils, or tools?
Best,
Jan
On 16 June 2016 at 14:00, Michael Lawrence <lawrence.michael at gene.com> wrote:
> I agree that the utils package needs some improvements related to
> this, and hope to make them eventually. This
2020 Mar 10
4
R CMD INSTALL cannot recognize full path on Windows
Oops, I think both of us forget to cite the r-devel channel.
Best,
Jiefei
On Tue, Mar 10, 2020 at 5:13 AM Wang Jiefei <szwjf08 at gmail.com> wrote:
> Thanks for your quick response, Tomas.
>
> Yes, this is a path issue, I think the problem is related to R, not the
> Rtools make. I built an example package for reproducing the problem:
> https://github.com/Jiefei-Wang/example
2015 Dec 16
2
Mystifying SEGFAULT on 3.2.3 but not 3.2.2
Dear R developers,
(Apologies about previous incomplete e-mail, I fat-fingered a keyboard
shortcut)??
I recently upgraded to 3.2.3 and am getting mystifying errors with my
in-development code (available at
https://github.com/gertvv/gemtc/tree/feature/regression). Every few hundred
LPs that I solve using the rcdd package will result in a SEGFAULT in the
garbage collector (address 0x10, cause
2012 Jan 27
2
Unable to reload Rdoc
Dear list,
I'm hoping the R guru's can help with an error i've been getting for at least a year during active package development.
I have a package loaded & spot a documentation bug, so I:
edit the Rd file (or in the roxygen header + roxygenize); then
R CMD BUILD,
R CMD INSTALL
then in the same R session, reload the library & lookup a man page, I always get this error:
Error
2012 Feb 08
3
Version control (git, mercurial) for R packages
Hi all, in particular package developers,
I'm exploring using a version control system to keep better track of
changes to the packages I maintain. I'm leaning towards git (although
mercurial also looks good) but am not sure what is the best way to set
up the repository. It seems I can't set the repository directly within
the R package main directory, since it will be incompatible with
2012 Feb 08
3
Version control (git, mercurial) for R packages
Hi all, in particular package developers,
I'm exploring using a version control system to keep better track of
changes to the packages I maintain. I'm leaning towards git (although
mercurial also looks good) but am not sure what is the best way to set
up the repository. It seems I can't set the repository directly within
the R package main directory, since it will be incompatible with
2005 Dec 08
1
Loading namespaces
I'm creating a package for my own use that uses some S4 classes but no
methods.
I have a file called NAMESPACE it contains the line:
exportClasses("foo")
and at the top of the R file I have
setClass("foo", representation(x="numeric")
and the line:
.onLoad<-function(libname,pkgname)
When I run R CMD check I get Syntax error in the only R file. If I
2018 Dec 06
5
Dealing with .git folder when using R CMD INSTALL
Dear all,
quite a few package tools depend on R CMD INSTALL today for rapid testing
of a package, eg:
- devtools::install()
- BiocCheck::BiocCheck()
I've noticed that at least BiocCheck() doesn't ignore version control
folders like .git. Trying to find out why this was, lead me to R CMD
INSTALL.
I know this R CMD build ignores these files and folders by default, but R
CMD INSTALL
2011 Sep 09
4
Please explain your workflow from R code -> package -> R code -> package
Hi,
I'm asking another one of those questions that would be obvious if I
could watch your work while you do it.
I'm having trouble understanding the workflow of code and package maintenance.
Stage 1. Make some R functions in a folder. This is in a Subversion repo
R/trunk/myproject
Stage 2. Make a package:
After the package.skeleton, and R check, I have a new folder with the
project
2004 Aug 04
1
installing package with version number using namespaces & dynamic library
Hi,
I wonder whether a package with namespace & dynamic library can be installed
with the version number attached, ie. with the argument --with-package-versions.
Is this currently possible?
Using R 1.9.1 on Debian 3.0 I encounter a problem when trying to load a package
installed with
R91 CMD INSTALL --with-package-versions -l /mnt/local/R/R-1.9.x-libs-EpiR RIO
in R started with
R91