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












0















Although I installed the 'reshape2' packages, it does not run when I type library(reshape2). Also, I can not see the package in the package list. I can see it in the directory where packages are stored. (For example: C:/Program Files/R/R-3.5.1/library) But it is not shown in the RStudio as packages, and I cannot use it. How can I install it correctly?



My .libPaths() is:



"C:/Users/batuh/Documents/R/win-library/3.5"
"C:/Program Files/R/R-3.5.1/library"


When I type install.packages("reshape2"), it says:



package ‘reshape2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘reshape2’









share|improve this question













migrated from superuser.com Feb 6 at 14:09


This question came from our site for computer enthusiasts and power users.



















  • Apparently you are using another library. What is the output of .libPaths()?

    – slhck
    Feb 4 at 10:38











  • It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

    – Batuhan Kavlak
    Feb 4 at 10:42











  • I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

    – Batuhan Kavlak
    Feb 4 at 10:46











  • I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

    – slhck
    Feb 4 at 10:51











  • Solved it as you said, thanks.

    – Batuhan Kavlak
    Feb 4 at 10:58
















0















Although I installed the 'reshape2' packages, it does not run when I type library(reshape2). Also, I can not see the package in the package list. I can see it in the directory where packages are stored. (For example: C:/Program Files/R/R-3.5.1/library) But it is not shown in the RStudio as packages, and I cannot use it. How can I install it correctly?



My .libPaths() is:



"C:/Users/batuh/Documents/R/win-library/3.5"
"C:/Program Files/R/R-3.5.1/library"


When I type install.packages("reshape2"), it says:



package ‘reshape2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘reshape2’









share|improve this question













migrated from superuser.com Feb 6 at 14:09


This question came from our site for computer enthusiasts and power users.



















  • Apparently you are using another library. What is the output of .libPaths()?

    – slhck
    Feb 4 at 10:38











  • It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

    – Batuhan Kavlak
    Feb 4 at 10:42











  • I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

    – Batuhan Kavlak
    Feb 4 at 10:46











  • I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

    – slhck
    Feb 4 at 10:51











  • Solved it as you said, thanks.

    – Batuhan Kavlak
    Feb 4 at 10:58














0












0








0








Although I installed the 'reshape2' packages, it does not run when I type library(reshape2). Also, I can not see the package in the package list. I can see it in the directory where packages are stored. (For example: C:/Program Files/R/R-3.5.1/library) But it is not shown in the RStudio as packages, and I cannot use it. How can I install it correctly?



My .libPaths() is:



"C:/Users/batuh/Documents/R/win-library/3.5"
"C:/Program Files/R/R-3.5.1/library"


When I type install.packages("reshape2"), it says:



package ‘reshape2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘reshape2’









share|improve this question














Although I installed the 'reshape2' packages, it does not run when I type library(reshape2). Also, I can not see the package in the package list. I can see it in the directory where packages are stored. (For example: C:/Program Files/R/R-3.5.1/library) But it is not shown in the RStudio as packages, and I cannot use it. How can I install it correctly?



My .libPaths() is:



"C:/Users/batuh/Documents/R/win-library/3.5"
"C:/Program Files/R/R-3.5.1/library"


When I type install.packages("reshape2"), it says:



package ‘reshape2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘reshape2’






r rstudio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 4 at 9:49









Batuhan KavlakBatuhan Kavlak

276




276




migrated from superuser.com Feb 6 at 14:09


This question came from our site for computer enthusiasts and power users.









migrated from superuser.com Feb 6 at 14:09


This question came from our site for computer enthusiasts and power users.















  • Apparently you are using another library. What is the output of .libPaths()?

    – slhck
    Feb 4 at 10:38











  • It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

    – Batuhan Kavlak
    Feb 4 at 10:42











  • I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

    – Batuhan Kavlak
    Feb 4 at 10:46











  • I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

    – slhck
    Feb 4 at 10:51











  • Solved it as you said, thanks.

    – Batuhan Kavlak
    Feb 4 at 10:58



















  • Apparently you are using another library. What is the output of .libPaths()?

    – slhck
    Feb 4 at 10:38











  • It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

    – Batuhan Kavlak
    Feb 4 at 10:42











  • I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

    – Batuhan Kavlak
    Feb 4 at 10:46











  • I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

    – slhck
    Feb 4 at 10:51











  • Solved it as you said, thanks.

    – Batuhan Kavlak
    Feb 4 at 10:58

















Apparently you are using another library. What is the output of .libPaths()?

– slhck
Feb 4 at 10:38





Apparently you are using another library. What is the output of .libPaths()?

– slhck
Feb 4 at 10:38













It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

– Batuhan Kavlak
Feb 4 at 10:42





It is "C:/Users/batuh/Documents/R/win-library/3.5" "C:/Program Files/R/R-3.5.1/library". I can see the 'reshape2' package in the first directory but not on the rstudio. (I can only see 'reshape' package. In the second directory, there are short of packages; I guess it is that of System Library.

– Batuhan Kavlak
Feb 4 at 10:42













I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

– Batuhan Kavlak
Feb 4 at 10:46





I noticed that whenever I type install.packages("reshape2"), it says package ‘reshape2’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘reshape2’

– Batuhan Kavlak
Feb 4 at 10:46













I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

– slhck
Feb 4 at 10:51





I'm voting to migrate your question to Stack Overflow where it may get a better answer. You might just want to delete your library and start fresh, or delete the reshape2 package from the first library path manually.

– slhck
Feb 4 at 10:51













Solved it as you said, thanks.

– Batuhan Kavlak
Feb 4 at 10:58





Solved it as you said, thanks.

– Batuhan Kavlak
Feb 4 at 10:58












1 Answer
1






active

oldest

votes


















1














Here how I solved the problem:



I terminated all R sessions from task manager. There were at least 8 of them running simultaneously even though I closed Rstudio.



Then I deleted the reshape2 folder from my library directory, which you can reach by .libPaths() function.



There will be 2 directories, the first one is where the package should be stored. For example:



C:/Users/batuh/Documents/R/win-library/3.5


Then I restarted Rstudio and installed it without problems.






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54555578%2ferror-in-libraryreshape2-there-is-no-package-called-reshape2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Here how I solved the problem:



    I terminated all R sessions from task manager. There were at least 8 of them running simultaneously even though I closed Rstudio.



    Then I deleted the reshape2 folder from my library directory, which you can reach by .libPaths() function.



    There will be 2 directories, the first one is where the package should be stored. For example:



    C:/Users/batuh/Documents/R/win-library/3.5


    Then I restarted Rstudio and installed it without problems.






    share|improve this answer




























      1














      Here how I solved the problem:



      I terminated all R sessions from task manager. There were at least 8 of them running simultaneously even though I closed Rstudio.



      Then I deleted the reshape2 folder from my library directory, which you can reach by .libPaths() function.



      There will be 2 directories, the first one is where the package should be stored. For example:



      C:/Users/batuh/Documents/R/win-library/3.5


      Then I restarted Rstudio and installed it without problems.






      share|improve this answer


























        1












        1








        1







        Here how I solved the problem:



        I terminated all R sessions from task manager. There were at least 8 of them running simultaneously even though I closed Rstudio.



        Then I deleted the reshape2 folder from my library directory, which you can reach by .libPaths() function.



        There will be 2 directories, the first one is where the package should be stored. For example:



        C:/Users/batuh/Documents/R/win-library/3.5


        Then I restarted Rstudio and installed it without problems.






        share|improve this answer













        Here how I solved the problem:



        I terminated all R sessions from task manager. There were at least 8 of them running simultaneously even though I closed Rstudio.



        Then I deleted the reshape2 folder from my library directory, which you can reach by .libPaths() function.



        There will be 2 directories, the first one is where the package should be stored. For example:



        C:/Users/batuh/Documents/R/win-library/3.5


        Then I restarted Rstudio and installed it without problems.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 4 at 10:57









        Batuhan KavlakBatuhan Kavlak

        276




        276
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54555578%2ferror-in-libraryreshape2-there-is-no-package-called-reshape2%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар