packages

Trouble installing nloptr package on R 3.3.0

老子叫甜甜 提交于 2019-12-05 13:42:46
I can't install the package nloptr 1.0.4 on R 3.3.0. The messages are the following: > install.packages("nloptr") Installing package into ‘/Users/fgomesbarros/Library/R/3.3/library (as ‘lib’ is unspecified) trying URL 'https://cran.revolutionanalytics.com/src/contrib/nloptr_1.0.4.tar.gz' Content type 'application/octet-stream' length 353942 bytes (345 KB) ================================================== downloaded 345 KB * installing *source* package ‘nloptr’ ... ** package ‘nloptr’ successfully unpacked and MD5 sums checked checking for g++... g++ checking whether the C++ compiler works...

How to avoid resource collisions in library jars?

折月煮酒 提交于 2019-12-05 13:01:23
I'm worried about the situation when libraries Foo and Bar each expose a resource on the classpath with the same name, say properties.txt in this example. Assuming a Maven set up and the jars are deployed with Maven, if I have this set up: Library Foo: $ cat Foo/src/main/resources/properties.txt $ Foo and Library Bar: $ cat Bar/src/main/resources/properties.txt $ Bar And an App that depends on them, whose pom looks something like this - in a nutshell this just says "build a jar-with-dependencies, and depend on Foo and Bar : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven

Automatic loading of data from sysdata.rda in package

别等时光非礼了梦想. 提交于 2019-12-05 12:06:30
I have spent a lot of time searching for an answer to what is probably a very basic question, but I just can't find the solution to my issue. The closest that I found was this exchange from a few years ago. In that case, the issue was the location of the sysdata.rda file in the correct directory within the package. That is not my issue. I have some variables that store things like color palettes that I amusing inside a package. These variables are only used inside my functions so I storing them in R/sysdata.rda. However, when I load the packages, the variables are not loading into the package

If an R package's licence X is, do all the content in that package have to be licenced under X? [closed]

好久不见. 提交于 2019-12-05 09:33:30
Hope the question above is clear. Now my case: For my package, i'm using several libraries (jars). Each library has been licenced under one of these: Apache v2, BSD or LPGL. Edit [some clarification] I have my own java classes packed in a jar. These import classes (dynamic linking) from the libraries mentioned here [End Edit] Question 1: Can i pack all these libraries in a single package? Question 1a: If yes, under what licence Apache, BSD, LGPL or any other? Question 1b: If yes, would it be enough to put all the library names in a NOTICE and to write under what licence is a library licenced

How do I group my package imports into a single custom package?

早过忘川 提交于 2019-12-05 08:21:42
Normally when I am writing the perl program . I used to include following package . use strict ; use warnings ; use Data::Dumper ; Now , I want like this, I will not include all this package for every program . for that I will have these all package in my own package. like following. my_packages.pm package my_packages ; { use strict ; use warnings ; use Data::Dumper; } 1; So, that if I add my_packages.pm in perl program , it needs have all above packages . Actually I have done this experimentation . But I am not able get this things . which means when I am using my_packages . I am not able get

Python Import Error for modules installed with Homebrew

眉间皱痕 提交于 2019-12-05 08:00:18
问题 I've already installed PySide using homebrew, but I get an error when my scripts run things such as from PySide import QtWebKit When I try brew install pyside I get an error that pyside-1.2.0 already installed When I try pip install pyside I get the following error: In file included from /Users/fitvalet/wgwt/env/build/pyside/sources/pyside/plugins/customwidgets.cpp:23: /Users/fitvalet/wgwt/env/build/pyside/sources/pyside/plugins/customwidget.h:27:10: fatal error: 'QtDesigner/QtDesigner' file

Self import of subpackages or not?

泄露秘密 提交于 2019-12-05 07:25:49
Suppose you have the following b b/__init__.py b/c b/c/__init__.py b/c/d b/c/d/__init__.py In some python packages, if you import b , you only get the symbols defined in b. To access b.c, you have to explicitly import b.c or from b import c . In other words, you have to import b import b.c import b.c.d print b.c.d In other cases I saw an automatic import of all the subpackages. This means that the following code does not produce an error import b print b.c.d because b/__init__.py takes care of importing its subpackages. I tend to prefer the first (explicit better than implicit), and I always

In Oracle PL/SQL is there any way to import packages and their members?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 07:08:39
Given a package: create or replace package foo as f1 number := 1; end; / Instead of: declare begin dbms_output.put_line('f1 = ' || foo.f1); end; / I'd like to write: declare begin -- pseudocode not a valid PL/SQL import dbms_output.*; import foo.*; put_line('f1 = ' || f1); end; / But how to do that ? EDIT by Jeff: (trying to stay in the spirit of how things are done in PL/SQL) DECLARE PRAGMA IMPORT dbms_output AS d; PRAGMA IMPORT foo AS f; BEGIN d.put_line('f1 = ' || f.f1); END; / Quite simply, you can't. Sorry, but there is no other answer! Of course you can! :) sort of... declare procedure

Why is package-protected method not visible in the same package?

只愿长相守 提交于 2019-12-05 06:20:47
Assume we have two packages p1 and p2 and classes p1.M1 extended by p2.M12 as follows: package p1; public class M1 { void method1() { System.out.println("Method 1 called"); } } package p2; import p1.M1; public class M12 extends M1 { void method2() { System.out.println("Method 2 called"); } } Let's extend M12 with p2.B : package p2; public class B extends M12 { public void doSomething() { method1(); method2(); } } This gives a compilation error as method1 , being package-protected within p1 is not visible in p2 . method2 is visible without problems. Now let's extend p2.M12 with p1.A : package

package java.nio.file does not exist

…衆ロ難τιáo~ 提交于 2019-12-05 06:02:56
I'm working out how to compile java from command line at the moment. Here's what I've got: Here's what I've got: /myjava/compile.cmd /myjava/src/a_pack/HelloWorld.java /myjava/src/b_pack/Inner.java /myjava/src/b_pack/Inner2.java /myjava/bin HelloWorld: package a_pack; import b_pack.Inner; import b_back.Inner2; import java.util.ArrayList; import java.util.Iterator; public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); Inner myInner = new Inner(); myInner.myInner(); Inner2 myInner2 = new Inner2(); myInner2.myInner(); ArrayList myArray = new