Re: [R] Error: cannot remove prior installation of package ‘BiocManager’
Thanks, Duncan and Uwe, I was using Rstudio. This solved the problem Best Regards *Ankush Sharma* On Fri, Jun 19, 2020 at 2:25 PM Duncan Murdoch wrote: > On 19/06/2020 8:06 a.m., Ankush Sharma wrote: > > The packages were installed after the update! > > That's not relevant. The issue is that the packages were loaded at the > time you tried to update them. > > You may have to start R with the --vanilla option to avoid automatically > loading packages if you've got a .Rprofile (or similar) file running > automatically on startup. > > A simpler solution to this is to use RStudio; it will automatically > restart R if necessary when installing a package. > > Duncan Murdoch > > > > > Best Regards > > *Ankush Sharma* > > > > > > On Fri, Jun 19, 2020 at 1:56 PM Uwe Ligges < > lig...@statistik.tu-dortmund.de> > > wrote: > > > >> The packages must not be loaded when you try to update. > >> > >> Best, > >> Uwe Ligges > >> > >> > >> > >> On 19.06.2020 12:07, Ankush Sharma wrote: > >>> Dear all, > >>> > >>> I am working R version 4.0.1 macos catalina , I´m not able to load > >>> libraries e.g ggplot2 > >>> > >>> Error: Error: package or namespace load failed for ‘ggplot2’ in > >>> loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): > >>>there is no package called ‘gtable’ > >>> Then i tried installing gtable, But installation is showing error : > >>> Error in install.packages : cannot remove prior installation of package > >>> ‘gtable’ > >>> > >>> This is also for other packages like BiocManager, when I manually > changed > >>> the name or removed the BiocManager from the library, the package was > >>> smoothly installed. > >>> Any pointers on how to solve this problem without manual removal of > >>> packages. remove.packages command is also not working. > >>> > >>> Thanks in advance. > >>> > >>> Best Regards > >>> *Ankush Sharma* > >>> > >>>[[alternative HTML version deleted]] > >>> > >>> __ > >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > >>> https://stat.ethz.ch/mailman/listinfo/r-help > >>> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >>> and provide commented, minimal, self-contained, reproducible code. > >>> > >> > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Error: cannot remove prior installation of package ‘BiocManager’
On 19/06/2020 8:06 a.m., Ankush Sharma wrote: The packages were installed after the update! That's not relevant. The issue is that the packages were loaded at the time you tried to update them. You may have to start R with the --vanilla option to avoid automatically loading packages if you've got a .Rprofile (or similar) file running automatically on startup. A simpler solution to this is to use RStudio; it will automatically restart R if necessary when installing a package. Duncan Murdoch Best Regards *Ankush Sharma* On Fri, Jun 19, 2020 at 1:56 PM Uwe Ligges wrote: The packages must not be loaded when you try to update. Best, Uwe Ligges On 19.06.2020 12:07, Ankush Sharma wrote: Dear all, I am working R version 4.0.1 macos catalina , I´m not able to load libraries e.g ggplot2 Error: Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘gtable’ Then i tried installing gtable, But installation is showing error : Error in install.packages : cannot remove prior installation of package ‘gtable’ This is also for other packages like BiocManager, when I manually changed the name or removed the BiocManager from the library, the package was smoothly installed. Any pointers on how to solve this problem without manual removal of packages. remove.packages command is also not working. Thanks in advance. Best Regards *Ankush Sharma* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Error: cannot remove prior installation of package ‘BiocManager’
The packages were installed after the update! Best Regards *Ankush Sharma* On Fri, Jun 19, 2020 at 1:56 PM Uwe Ligges wrote: > The packages must not be loaded when you try to update. > > Best, > Uwe Ligges > > > > On 19.06.2020 12:07, Ankush Sharma wrote: > > Dear all, > > > > I am working R version 4.0.1 macos catalina , I´m not able to load > > libraries e.g ggplot2 > > > > Error: Error: package or namespace load failed for ‘ggplot2’ in > > loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): > > there is no package called ‘gtable’ > > Then i tried installing gtable, But installation is showing error : > > Error in install.packages : cannot remove prior installation of package > > ‘gtable’ > > > > This is also for other packages like BiocManager, when I manually changed > > the name or removed the BiocManager from the library, the package was > > smoothly installed. > > Any pointers on how to solve this problem without manual removal of > > packages. remove.packages command is also not working. > > > > Thanks in advance. > > > > Best Regards > > *Ankush Sharma* > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Error: cannot remove prior installation of package ‘BiocManager’
The packages must not be loaded when you try to update. Best, Uwe Ligges On 19.06.2020 12:07, Ankush Sharma wrote: Dear all, I am working R version 4.0.1 macos catalina , I´m not able to load libraries e.g ggplot2 Error: Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘gtable’ Then i tried installing gtable, But installation is showing error : Error in install.packages : cannot remove prior installation of package ‘gtable’ This is also for other packages like BiocManager, when I manually changed the name or removed the BiocManager from the library, the package was smoothly installed. Any pointers on how to solve this problem without manual removal of packages. remove.packages command is also not working. Thanks in advance. Best Regards *Ankush Sharma* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Error: cannot remove prior installation of package ‘BiocManager’
Dear all, I am working R version 4.0.1 macos catalina , I´m not able to load libraries e.g ggplot2 Error: Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘gtable’ Then i tried installing gtable, But installation is showing error : Error in install.packages : cannot remove prior installation of package ‘gtable’ This is also for other packages like BiocManager, when I manually changed the name or removed the BiocManager from the library, the package was smoothly installed. Any pointers on how to solve this problem without manual removal of packages. remove.packages command is also not working. Thanks in advance. Best Regards *Ankush Sharma* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.