library of package haven is not opening

Error Information: > installed.packages("haven")

 Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances License
 License_is_FOSS License_restricts_use OS_type Archs MD5sum NeedsCompilation Built

library("haven")
Error in library("haven") : there is no package called ‘haven’

Description of issue - I installed the package haven and then tried to open the library of the same package but it is not opening

Steps taken so far -

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version: 10.14 (18A391)
  • R Version: Version 1.1.463 – © 2009-2018 RStudio, Inc.

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

This means that the library haven is not found in your current library paths

  • check .libPaths() to see the current lib paths
  • use find.package("haven") to see if the package installation folder is found

You may try to reinstall the package and check the installation is correct.

Welcome to the community!

When you try to install a package, the function used is install.packages, not installed.packages. The latter can be used to get details of the packages which are already installed.

Try to install by install.packages("haven", dependencies = TRUE), and then try to lead it using library(haven).

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.