Installing, loading xtable in rmarkdown

#Cant use xtable in Rmarkdown I get this error
#Error in xtable():
#! could not find function "xtable"
#Execution halted

install.packages("xtable")
library(xtable)

Hi, welcome to the forum.

Is this code

install.packages("xtable")
library(xtable)

in your Rmarkdown document? If so remove install.packages("xtable").

You need to install xtable in your general environment. You cannot install a package wile working in .rmd document.

Thanks![quote="jrkrideau, post:2, topic:176812, full:true"]
Hi, welcome to the forum.

Is this code

install.packages("xtable")[quote="jrkrideau, post:2, topic:176812, full:true"]
Hi, welcome to the forum.  

Is this code

install.packages("xtable")
library(xtable)

in your  Rmarkdown document?  If so remove `install.packages("xtable")`.

You need to install `xtable ` in your general environment.  You cannot install a package wile working in .rmd document.
[/quote]


library(xtable)

in your Rmarkdown document? If so remove install.packages("xtable").

You need to install xtable in your general environment. You cannot install a package wile working in .rmd document.
[/quote]

Thank you, Rideau!

This topic was automatically closed 7 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.