Questions tagged [package-development]

73 questions
1
vote
2 answers

Laravel Package development: Facade alias not found

I try to create an alias for a facade in a Laravel 7 package. On testing I get the message: Error: Class 'MemberRequest' not found Test: /** @test */ public function a_member_request_can_be_created() { …
Madriesen
  • 498
  • 2
  • 8
  • 22
1
vote
0 answers

.Rproj files disappear from project directories in R CMD CHECK environment

I'm working on developing an R package that reads/checks user file structure. Some functions in the package check to see if an .Rproj file exists in a given directory. I've written a test for one of those functions using testthat, but am running…
1
vote
1 answer

How to autoload Service provider in Laravel package development

I'm trying to develop a very simple Laravel package for learning purpose. I want to display a simple message like 'Hello World' when I call /demo route. I've installed my package in a Laravel project with the following command: composer require…
Rejaul
  • 831
  • 1
  • 12
  • 35
1
vote
0 answers

Some errors which vanishes in the second execution

The code R CMD check detect some error which is not shown explicitly in the file 00check.log. I run the suspicious R code via the console of R studio then the following warning messages launched. But I cannot understand what this means or how to…
Camford Oxbridge
  • 834
  • 8
  • 21
1
vote
4 answers

Extended User Model in a Package

Could you help me understand the right way to extend existing models? I'm developing a package and want to do as much as possible separated from the main application. I want to have all existing functionality of the User model, but only add a…
Olga Zhe
  • 163
  • 7
1
vote
2 answers

laravel package development and link to css/js file

I am new in laravel package development and i want to link to css and js files in main view. I do this, but it links to project path but i want to link to css/js files in package…
alireza
  • 141
  • 1
  • 5
1
vote
0 answers

Where to place calls to route() within Package's Service Provider?

I have 2 Laravel packages; one for managing an admin panel. And the second one for filling it with useful pages. Now the first package; let's call it AdminPackage from now on. Has a built in Menu Manager which allows me to register new headers &…
Nick Verheijen
  • 229
  • 2
  • 9
1
vote
1 answer

Use roxygen2 to export a variant function

When I use @describeIn or @rdname to document a variant of a function, the variant doesn't get exported. Is there a tag I can place in the roxygen skeleton to change this, or do I need to go directly into the NAMESPACE? #' Title #' #' @return #'…
Empiromancer
  • 3,778
  • 1
  • 22
  • 53
1
vote
1 answer

Laravel 5 re-usable project

After some fiddling building a package for a project we've realised there's some issues with doing what we need to achieve as per Laravel 5 package development clarity Maybe I should rather explain my goal and someone can suggest a direction to head…
Wancieho
  • 708
  • 1
  • 7
  • 25
1
vote
3 answers

How to re-use bootstrap's LESS variables in a meteor package

I am making a package that provides some additionnal ui components for bootstrap. I chose to depend on the (awesome) nemo64:bootstrap package for the LESS bootstrap library. My package has to provide additional LESS files that would require some of…
1
vote
1 answer

Packaging Android app using Dart content shell

The only way I aware about it now to package Dart app as Android app, is to get it converted to javascript, and use it in a webview. My question or thinking today is: Is there a chance or a way to package the DART application with the 2 files…
Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
0
votes
0 answers

Include Npm packages inside my Laravel Package

I am building a Laravel package which needs npm packages . Now the problem is that when the user install the package via composer I need him to run npm install to install the required npm packages of my package . I don't need to include it in…
0
votes
1 answer

Problem for run test on a Laravel package

I use a transformed Spatie/laravel-package-skeleton with my own ModuleServiceProvider and Module class for my system. I didn't find suffisant ressource on the web for making my module system so maybe there is a problem of implementation. Normaly ( I…
0
votes
1 answer

Returning data frame as main result but also informative list as side effect

I'm writing a function where I want the main output to be a data frame (that can be piped to other functions), but I also want to allow users access to an informative list or vector of samples that were omitted from the final result. Are there best…
kittykatstat
  • 438
  • 2
  • 5
0
votes
1 answer

How to put units inside roxygen

I am docummenting a dataset using roxygen2 (for my package development). I am trying to put cube meter (m^2) as a unit for one of my variable but it remains the same (m^2) when I am trying to see the documentation ?data. How can I generate units…