Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6051675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:50:40+00:00 2026-05-23T07:50:40+00:00

Background I am creating a newpackage that depends on oldpackage , and have indicated

  • 0

Background

I am creating a newpackage that depends on oldpackage, and have indicated this dependency in the file newpackage/DESCRIPTION.

Furthermore,

  • oldpackage is installed in the directory, ~/lib/R

  • my .Rprofile includes .libPaths("~/lib/R")

    • hence, I can successfully load oldpackage without specifying the library location, e.g., using the command library(oldpackage) in R

Despite the ability to load the package without having its library specified, R CMD check newpackage gives an error indicating that it can not fine oldpackage:

checking whether the package can be loaded ... ERROR 
Loading required package: oldpackage
Error: package 'oldpackage' could not be loaded
In addition: Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
  there is no package called 'oldpackage'
Execution halted


It looks like this package has a loading problem: see the messages for
    details.

Questions:

  1. Why is R unable to find the package?

  2. Can I specify the library location in the DESCRIPTION file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:50:41+00:00Added an answer on May 23, 2026 at 7:50 am

    Regarding question 1), it is both a FAQ and yet somewhat annoying. R CMD check runs in vanilla mode, so it will not find user-level libraries. As I recall, setting R_LIBS=”….” in the call helps, so try that.

    Regarding question 2), no you cannot give a location in DESCRIPTION. Which makes sense as that file needs to work ‘everywhere’ whereas your location info is local to your machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, the background: I am creating a Flex application with a component that displays
i'm creating asmx web service and have to create thread to do background IO
BACKGROUND I'm creating an AJAX chat system. It looks something like this: Mike -
I have been creating multiple background threads to parse xml files and recreate new
I have background NSInvocationOperation creating and saving NSArray to the NSManagedObject subclass. I know
Background: I'm creating a toolkit of custom components that extend current components functionality, layout,
Background: I'm creating a hierarchical geographic directory. The geo databases I'm using has fields
Background: I'm in the process of creating a web service using ASP.NET 2.0. This
I am creating my own UITableViewCells with a gradient background. I have all the
I am creating Cancel button with my own Background image this way: UIBarButtonItem *leftBarButton

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.