Questions tagged [package-development]

73 questions
2
votes
1 answer

CRAN rejection for tidyverse dependencies not in mainstream repositories

We submitted a package this morning to CRAN, but it was rechecked because of pre-checks on the windows build. The Debian build was perfectly fine, but it looks like the windows build isn't seeing tidyverse packages in any mainstream repo. One thing…
2
votes
0 answers

Is there a "correct" way to use exported data internally in an R package?

I know that exported data (access to users) belongs in the data/ folder and that internal data (data used internally by package functions) belongs in R/sysdata.rda. However, what about data I wish to both export to the user AND be available…
Stu Field
  • 255
  • 2
  • 10
2
votes
1 answer

Visualizing and keeping track of your package development state

What is a good way of keeping track of the state of development and/or visualizing how all your R packages are linked to each other (and its "third-party" dependencies)? I usually try to apply a "divide and conquer" strategy which by now - 5 years…
Rappster
  • 12,762
  • 7
  • 71
  • 120
2
votes
1 answer

Alternatives to placing package in "Depends" section

I'm writing a small package that builds some custom types of graphs using ggplot2. Naturally, my source files are going to be littered with ggplot2 functions. I'm somewhat new to package development, and my understanding is that it's generally…
Empiromancer
  • 3,778
  • 1
  • 22
  • 53
2
votes
1 answer

testthat error on check() but not on test() because of ~/.Rprofile?

EDIT: Is it possible that ~/.Rprofile is not loaded on within check(). It looks like my whole process fails since the ~/.Rprofile is not loaded. DONE EDIT I have a strange problem on automated testing with testthat. Actually, when I test my package…
drmariod
  • 11,106
  • 16
  • 64
  • 110
2
votes
2 answers

How do I get rid of the NOTE's generated by R CMD check when using for example ddply in my package?

I have a problem similar to, yet distinct from, How can I handle R CMD check "no visible binding for global variable" notes when my ggplot2 syntax is sensible?. In that scenario everything works smoothly by using aes_string instead of aes. However,…
Dr. Mike
  • 2,451
  • 4
  • 24
  • 36
2
votes
1 answer

Why does the .Rd file not contain a link to another function when I \code{\link{functionname}}?

I am using package::roxygen2 to develop a package with RStudio. Below is are the roxygen comments to one of my functions, called coltrain(). #' Collect raw training data using external SQL queries. #' #' @details This is a wrapper for the…
Brash Equilibrium
  • 1,357
  • 4
  • 14
  • 35
2
votes
1 answer

rStudio autocompletion description and usage

I am pretty new in package development for R. I develop a small package in R using the manual from Hadley Wickem http://adv-r.had.co.nz/Package-development-cycle.html I switched to dev_mode(), install() my package and load it with library(package…
drmariod
  • 11,106
  • 16
  • 64
  • 110
1
vote
1 answer

Laravel 8 Package Development pushMiddlewareToGroup

After updating Laravel version from 6.0 to 8.0, the middleware pushed using $router->pushMiddlewareToGroup is not working. //add language middleware to the web group $router->pushMiddleWareToGroup('web',Language::class);
Karim Naimy
  • 139
  • 3
1
vote
1 answer

View not found on my laravel package tests

I'm trying to add blade directives for my Laravel package. Everything is fine but on testing stage, I'm getting this error: 1) MahbodHastam\UserWallet\Tests\Feature\BladeTest::show_user_wallet_balance InvalidArgumentException: View…
1
vote
1 answer

R submitting archived package to CRAN

One of my R package DiallelAnalysisR was removed from the CRAN repository. Now I fixed the problem and want to resubmit it to CRAN. However, after submitted the package I got the following NOTE CRAN teams' auto-check service Flavor:…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
1
vote
0 answers

Using parallel package functions inside own R package

I created own R package with functions that use parallel functions like makeCluster, parLapply etc. However, they are much slower inside the package as used outside. There are slower initialization of cluster, and exporting objects... Do you have…
1
vote
0 answers

Define active binding in a package when the active binding fails by default

Based on this Q&A , this code defines a package containing an active binding to the value 1. It passes devtools::check(): my_function <- function() 1 #' return 1 #' @usage my_active_binding #' @name my_active_binding NULL .onLoad <-…
moodymudskipper
  • 46,417
  • 11
  • 121
  • 167
1
vote
1 answer

Laravel: Permanently override config of dependencies from a Laravel Package before publishing them

I am developing a Laravel Package which installs a list of dependencies. The dependencies have their own configuration files to be published after installation. What we need is to auto (to avoid doing it manually) modify the config files of these…
1
vote
4 answers

How to use Laravel/sanctum in package development

I try to use the Laravel/Sanctum in a custom Laravel package. As in a default Laravel application, I added it to the composer file, added the migration and set it up in the routes file. The next error message appears: "Auth guard [sanctum] is not…