ggplot2, grid and bear [🇷 for BE/BA]

posted by yjlee168 Homepage – Kaohsiung, Taiwan, 2015-12-22 15:56 (3336 d 02:20 ago) – Posting: # 15762
Views: 8,740

Dear Detlew,

❝ Seen: yes. Understood: no.


I don't quite understand either. but seems interesting.

❝ Strange. But I think it depends on the NAMESPACE of both versions. I bet these are different.


I think I have done it. This time I use importFrom("ggplot2",...), not importFrom("grid",...) (because it won't work with ggplot2 v2.0.0 but v1.0.1). Yesterday I did importFrom("ggplot2",...) with no luck. That was because I still kept ggplot2 in the package list Imports in DESCRIPTION. I just remove ggplot2 from the package list of Imports in DESCRIPTION, as well as from the list of import(...) in the file of NAMESPACE. That means, when we use importFrom("foo",...), then the package foo cannot be in the package list of Imports in the file of DESCRIPTION, and also cannot be in the list of import(...) in the file of NAMESPACE. As you said yesterday, we just imported some functions (not the whole package). Therefore, this package cannot appear in the package list of Imports again. That's the key point. In this case, I put grid back to package list of "Imports" in DESCRIPTION, and also in import(...) of NAMESPACE.

I just tried importFrom("grid",...) again. And remove grid from the package list of Imports in DESCRIPTION. It works well too. So we have two importFrom() in NAMESPACE. I feel more comfortable now. This should make bear to work with ggplot2 either v2.0.0 or v1.0.1 [edited].

All the best,
-- Yung-jin Lee
bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here

Complete thread:

UA Flag
Activity
 Admin contact
23,376 posts in 4,912 threads, 1,666 registered users;
228 visitors (0 registered, 228 guests [including 17 identified bots]).
Forum time: 18:17 CET (Europe/Vienna)

The great tragedy of Science – the slaying
of a beautiful hypothesis by an ugly fact.    Thomas Henry Huxley

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5