Skip to main content

Questions tagged [package]

Package broadly refers to two things: 1) a usable unit/component of built/compiled software, or 2) a partition of the global namespace (Java).

Filter by
Sorted by
Tagged with
54 votes
2 answers
16k views

What's a Chocolatey "Install" package?

On reviewing the chocolatey packages available, I came across a few that have two (or sometimes more) packages apparently for the same product. At first glance is not possible to tell the difference. ...
j4v1's user avatar
  • 1,537
54 votes
1 answer
25k views

What does "the following packages will be superseded by a higher priority channel" mean?

I am trying to install fuzzywuzzy onto my Anaconda distribution in 64 bit Linux. When I do this, it tries to change my conda, and conda-env to conda-forge channels. As follows: I search anaconda for ...
Chuck's user avatar
  • 3,774
54 votes
3 answers
30k views

How do you organise a python project that contains multiple packages so that each file in a package can still be run individually?

TL;DR Here's an example repository that is set up as described in the first diagram (below): https://github.com/Poddster/package_problems If you could please make it look like the second diagram in ...
Pod's user avatar
  • 4,125
53 votes
5 answers
17k views

Rbuildignore and Excluding Directories

I am interested in excluding two directories inst\docs and inst\examples while building and installing the package. I know that an easy way out is just to move docs and examples to the root directory ...
Ramnath's user avatar
  • 55.3k
52 votes
4 answers
54k views

How do I install a package that has been archived from CRAN?

I typed the following in the R command line: install.packages("RecordLinkage") I got the following error: Warning in install.packages : package ‘RecordLinkage’ is not available (for R version 3....
Rainmaker's user avatar
  • 1,221
52 votes
4 answers
56k views

How do I add package level annotations or edit package-info.java?

I'm trying to add package level annotations but I don't have a clue on how to do it. Examples are appreciated.
link_boy's user avatar
  • 1,075
52 votes
3 answers
84k views

Golang, importing packages from Github requests me to remember the Github URL?

I'm very new to Golang. I see that in Golang you can import packages directly from Github like: import "github.com/MakeNowJust/heredoc" Does that mean I have to remember this URL in order to use ...
user130268's user avatar
  • 1,351
52 votes
7 answers
36k views

How to tell what packages you have used in R

I have a very long R script with many if statements and exception cases. As i've been going, if been importing and testing libraries as I've gone and haven't really documented them very well. The ...
aeongrail's user avatar
  • 1,374
52 votes
4 answers
35k views

How to organize multiple python files into a single module without it behaving like a package?

Is there a way to use __init__.py to organize multiple files into a module? Reason: Modules are easier to use than packages, because they don't have as many layers of namespace. Normally it makes a ...
Brian's user avatar
  • 923
51 votes
8 answers
46k views

Can't get composer "path" repository to work

I have a directory structure like so: composer.json < Main packages/ balunker/ testpackage/ composer.json < Package src/ TestPackage.php The main composer....
devboxr's user avatar
  • 1,391
51 votes
4 answers
138k views

How to reinstall rpm package?

I have installed a package from .rpm file and it is stored in /opt. After some configuration I found that I need to reinstall the software. So I deleted the directory and attempted to reinstall the ...
Newbie's user avatar
  • 2,805
51 votes
2 answers
25k views

Netbeans - is it possible to see project source folders in a tree (hierarchical) view, rather then a flat view?

I have some huge NetBeans projects with many packages, sub-packages, sub-sub-packages .etc, and it gets very confusing seeing all these package folders in the flat layout that NetBeans shows.. e.g. a....
José's user avatar
  • 1,565
51 votes
9 answers
24k views

public methods in package-private classes

Does it make a difference to mark methods as public in package-private classes? class SomePackagePrivateClass { void foo(); // package private method public void bar(); // public ...
fredoverflow's user avatar
51 votes
7 answers
61k views

See when packages were installed / updated using pip

I know how to see installed Python packages using pip, just use pip freeze. But is there any way to see the date and time when package is installed or updated with pip?
Nishant Nawarkhede's user avatar
51 votes
11 answers
54k views

What is the purpose of defining a package in a Java file? [closed]

I am a newbie and just learned that if I define say package my.first.group.here; ... then the Java files that are in this package will be placed under my/first/group/here directory. What is the ...
derrdji's user avatar
  • 13.1k
51 votes
3 answers
23k views

Is Lerna needed anymore with NPM workspaces?

Is Lerna needed anymore with NPM 7.0.0 workspaces? I don't really have experience with this new npm feature. npm/RFCs writes: First and foremost there’s the alternative of leaving the problem set for ...
Markus Guder's user avatar
51 votes
6 answers
33k views

C++ Namespaces, comparison to Java packages

I've done a bunch of Java coding recently and have got used to very specific package naming systems, with deep nesting e.g. com.company.project.db. This works fine in Java, AS3/Flex and C#. I've seen ...
Mr. Boy's user avatar
  • 62.8k
50 votes
6 answers
119k views

Why do package names often begin with "com" [duplicate]

Possible Duplicate: Java packages com and org I am a java developer. Nowadays I am learning struts and when reading a tutorial a curiosity intruded in my mind regarding package com.something....
Nishant Kumar's user avatar
50 votes
6 answers
20k views

What is the significance of the reverse domain name for java package structure

Why do we use reverse domain name like com.something. or org.something. structure for java packages? I understand this brings in some sort of uniqueness, but why do we need this uniqueness?
Vaishak Suresh's user avatar
50 votes
1 answer
65k views

How to configure logback for package?

Is it possible to configure logback to log at e.g. WARN or INFO level for all packages but x.y? And then separate configuration for package x.y only.
Opal's user avatar
  • 83.9k
50 votes
5 answers
27k views

The Pythonic way of organizing modules and packages

I come from a background where I normally create one file per class. I organize common classes under directories as well. This practice is intuitive to me and it has been proven to be effective in C++,...
carl's user avatar
  • 50.3k
50 votes
3 answers
98k views

Configuring Python to use additional locations for site-packages

Is there a way to tell Python about additional site-packages locations without modifying existing scripts? On my CentOS 5.5 server I have a Python 2.7 installation that is installed in /opt/python2.7....
Kev's user avatar
  • 119k
49 votes
5 answers
15k views

How can I see all packages that depend on a certain package with PIP?

I would like to see a list of packages that depend on a certain package with PIP. That is, given django, I would like to see django-cms, django-filer, because I have these packages installed and they ...
linkyndy's user avatar
  • 17.5k
49 votes
10 answers
17k views

What's a good practice regarding sharing the GOPATH?

I'm just getting into learning Go, and reading through existing code to learn "how others are doing it". In doing so, the use of a go "workspace", especially as it relates to a project's dependencies, ...
heckj's user avatar
  • 7,282
49 votes
4 answers
45k views

Update multiple dependencies with Bower

I listed (and/or installed) several dependencies with Bower inside the bower.json file and/or with bower install https://github.com/username/project.git That worked fine. Now I can list all them ...
kaiser's user avatar
  • 22.2k
49 votes
5 answers
44k views

Load package dynamically

Is it possible to load a specific package during runtime? I want to have a kind of plugins where each one has the same functions than the others but with different behaviour, and depending on the ...
Pepeluis's user avatar
  • 931
49 votes
3 answers
64k views

importing a module in nested packages

This is a python newbie question: I have the following directory structure: test -- test_file.py a -- b -- module.py where test, a and b are folders. Both test and a are on the same level....
khelll's user avatar
  • 23.9k
49 votes
2 answers
136k views

How to use org.apache.commons package?

On various web examples I see imports such as: import org.apache.commons.net.ftp.FTPClient; I don't understand how to use these, and the apache website is fairly unclear. How to I use these classes? ...
Connor's user avatar
  • 1,973
48 votes
5 answers
55k views

nuget retrieving package metadata

An error occurred while retrieving package metadata for 'bootstrap.3.3.5' from source 'nuget.org'. ========== Finished ========== Where the defect wonder Is site nuget.org may crash or whether ...
Sultan's user avatar
  • 700
48 votes
19 answers
102k views

yarn is having troubles with the network connection

I tried to install a package with yarn earlier today and I got this yarn install yarn install v1.9.4 [1/4] 🔍 Resolving packages... info There appears to be trouble with your network connection. ...
dragi's user avatar
  • 1,502
48 votes
3 answers
38k views

NPM package 'bin' script for Windows

Cucumber.js is supplying a command-line "binary" which is a simple .js file containing a shebang instruction: #!/usr/bin/env node var Cucumber = require('../lib/cucumber'); // ... The binary is ...
jbpros's user avatar
  • 1,647
48 votes
2 answers
8k views

Multiple packages definition

While browsing the source code of the Scala API, I met this package definition in scala/tags/R_2_8_0_final/src/library/scala/util/parsing/combinator/syntactical/StdTokenParsers.scala: package scala....
Mr_Qqn's user avatar
  • 1,588
48 votes
2 answers
5k views

Writing robust R code: namespaces, masking and using the `::` operator

Short version For those that don't want to read through my "case", this is the essence: What is the recommended way of minimizing the chances of new packages breaking existing code, i.e. of making ...
Rappster's user avatar
  • 13k
47 votes
9 answers
17k views

Error about Android Studio on Macbook M1: An error occurred while trying to compute required packages

I've downloaded Android Studio from the official website, the one for M1 chip (arm). Basically running it for the first time, the error is the following: An error occurred while trying to compute ...
KayFirst's user avatar
  • 473
47 votes
5 answers
13k views

No visible binding for global variable Note in R CMD check

I noticed in checking a package that I obtain notes "no visible binding for global variable" when I use functions like subset that use verbatim names of list elements as arguments. For example with a ...
Sacha Epskamp's user avatar
47 votes
3 answers
55k views

IntelliJ IDEA folders instead of packages in project view

Is it possible in IntelliJ IDEA to show folders instead of packages in project view? There is such a feature in Eclipse: we can just switch from "package explorer" to "project explorer" and here we go....
mr.nothing's user avatar
  • 5,328
46 votes
2 answers
20k views

Using hyphen/dash in python repository name and package name

I am trying to make my git repository pip-installable. In preparation for that I am restructuring the repo to follow the right conventions. My understanding from looking at other repositories is that ...
DataMan's user avatar
  • 3,355
46 votes
9 answers
97k views

How to wildcard include JAR files when compiling?

I have the following in a java file (MyRtmpClient.java): import org.apache.mina.common.ByteBuffer; and ByteBuffer is inside a JAR file (with the proper directory structure of course). That jar file ...
user avatar
46 votes
4 answers
19k views

Relationship between a package statement and the directory of a .go file

See this experiment. ~/go/src$ tree -F . ├── 1-foodir/ │   └── 2-foofile.go └── demo.go 1 directory, 2 files ~/go/src$ cat demo.go package main import ( "fmt" "1-foodir" ) func main() { ...
Lone Learner's user avatar
  • 19.8k
45 votes
5 answers
39k views

Cordova + Ionic framework - How to safely change package name?

i would like to change default name of the installation package from default com.ionicframework.starterto com.something.something, how can i do it safely please? What i should to edit? Thanks for any ...
redrom's user avatar
  • 11.6k
45 votes
6 answers
112k views

Can't uninstall/reinstall NuGet package

I've set up my project with Visual Studio Express 2012, added some C# code, and successfully compiled/deployed to emulator. At some point I decided I want to do something with JSON, and I found that I ...
user826955's user avatar
  • 3,174
45 votes
6 answers
16k views

What is the clearest way to deprecate a package in Java?

I'm working on a new codebase and migrating the system to a new framework. There are a number of packages that I would like to deprecate, just to make it very clear to other developers that ...
Daniel Alexiuc's user avatar
45 votes
5 answers
21k views

NAMESPACE not generated by roxygen2. Skipped. - Confusion with Hadley book

I am trying to make a package but when I run document() it prints NAMESPACE not generated by roxygen2. Skipped. I am trying to use ggplot2,XML, R6 packages in my functions. I am importing them in the ...
melatonin15's user avatar
  • 2,199
45 votes
7 answers
124k views

What should be the package name of android app?

I want to know that what should be the package name of android app? Means normally we used com.appname OR com.organizationName.appName, But when we are submitting our application in to market then ...
anddev's user avatar
  • 3,194
45 votes
4 answers
22k views

Find which python modules are being imported

What's an easy way of finding all the python modules from a particular package that are being used in an application?
John Jiang's user avatar
  • 11.3k
45 votes
1 answer
80k views

python3: ImportError: No module named xxxx [duplicate]

I am new to Python and I am trying to understand a problem, which I see when creating a package. I have the following file structure: (Working-Directory is /my/Python/jmLib2) /my/Python/jmLib2 |...
MatrixClient's user avatar
45 votes
1 answer
2k views

Must R Packages Unload Dynamic Libraries When They Unload?

From Hadley's C best practices: Like with C++, whenever you use C code in your package, you should unload the DLL when the package is unloaded: .onUnload <- function (libpath) { library.dynam....
BrodieG's user avatar
  • 52.4k
44 votes
3 answers
23k views

Libraries, projects, modules and packages in Intellij Idea

I'm a beginner programmer and I'm learning how to work with Intellij IDEA. A project in IntelliJ IDEA has some different structures like libraries, modules and packages. Can someone explain what the ...
Michiel Van Couwenberghe's user avatar
44 votes
2 answers
24k views

Using a non-laravel package on Laravel 4

Is it possible to include a package that was not specifically designed for L4 in the framework? If so, how is it done? I know I need to add the package to my composer.json which adds it to the vendor ...
Matanya's user avatar
  • 6,336
44 votes
5 answers
9k views

Is a Java package the equivalent of a .Net assembly?

I am a .Net developer starting Java development for Android and would like to know if it's correct to think of Java packages like .Net assemblies.
JimDaniel's user avatar
  • 12.7k

1
3 4
5
6 7
343