I need some help here please, I've tried everything, I can't use the library(rms) despite the fact that it's installed, please check this screenprint, I've even reisntalled R and RStudio
install.packages('rms')
#WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
# https://cran.rstudio.com/bin/windows/Rtools/
# Installing package into ‘C:/Users/abroc/OneDrive - UBC/Documents/R/win-library/4.1’
#(as ‘lib’ is unspecified)
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rms_6.2-0.zip'
#Content type 'application/zip' length 2167600 bytes (2.1 MB)
#downloaded 2.1 MB
#package ‘rms’ successfully unpacked and MD5 sums checked
#The downloaded binary packages are in
#C:\Users\abroc\AppData\Local\Temp\Rtmp6l5UM6\downloaded_packages
install.packages('rms')
#Loading required package: Hmisc
#Error: package or namespace load failed for ‘Hmisc’ in namespaceExport(ns, exports):
# undefined exports: htmlDependencies<-, HTML, a, as.tags, attachDependencies, br, browsable, capturePlot, code, copyDependencyToDir, css, defaultPngDevice, div, doRenderTags, em, extractPreserveChunks, findDependencies, h1, h2, h3, h4, h5, h6, hr, htmlDependencies, htmlDependency, htmlEscape, htmlPreserve, htmlTemplate, html_print, img, includeCSS, includeHTML, includeMarkdown, includeScript, includeText, is.browsable, is.singleton, knit_print.html, knit_print.shiny.tag, knit_print.shiny.tag.list, makeDependencyRelative, p, parseCssColors, plotTag, pre, renderDependencies, renderDocument, renderTags, resolveDependencies, restorePreserveChunks, save_html, singleton, span, strong, subtractDependencies, suppressDependencies, surroundSingletons, tag, tagAppendAttributes, tagAppendChild, tagAppendChildren, tagFunction, tagGetAttribute, tagHasAttribute, tagList, tagSetChildren, tags, takeSingletons, urlEncodePath, validateCssUnit, withTags
#Error: package ‘Hmisc’ could not be loaded
#In addition: Warning message:
# S3 methods ‘as.character.html’, ‘as.character.shiny.tag’, ‘as.character.shiny.tag.list’, ‘as.tags.character’, ‘as.tags.default’, ‘as.tags.html’, ‘as.tags.html_dependency’, ‘as.tags.list’, ‘as.tags.shiny.tag’, ‘as.tags.shiny.tag.function’, ‘as.tags.shiny.tag.list’, ‘format.html’, ‘format.shiny.tag’, ‘format.shiny.tag.list’, ‘print.html’, ‘print.html_dependency’, ‘print.shiny.tag’, ‘print.shiny.tag.list’ were declared in NAMESPACE but not found
> .libPaths()
#[1] "C:/Users/abroc/OneDrive - UBC/Documents/R/win-library/4.1" "C:/Program Files/R/R-4.1.2/library"
#Warning message:
# S3 methods ‘as.character.html’, ‘as.character.shiny.tag’, ‘as.character.shiny.tag.list’, ‘as.tags.character’, ‘as.tags.default’, ‘as.tags.html’, ‘as.tags.html_dependency’, ‘as.tags.list’, ‘as.tags.shiny.tag’, ‘as.tags.shiny.tag.function’, ‘as.tags.shiny.tag.list’, ‘format.html’, ‘format.shiny.tag’, ‘format.shiny.tag.list’, ‘print.html’, ‘print.html_dependency’, ‘print.shiny.tag’, ‘print.shiny.tag.list’ were declared in NAMESPACE but not found
Here is the screenprint
https://drive.google.com/file/d/1p-IjoETu64WIIwfegzQjEEGnQg-3DTD8/view?usp=sharing
Thanks in advance,
Andres