# ERROR: UndefVarError: \`install\` not defined

**URL:** https://discourse.julialang.org/t/error-undefvarerror-install-not-defined/119305
**Category:** General Usage
**Created:** [September 11, 2024, 11:53pm UTC](https://discourse.julialang.org/t/error-undefvarerror-install-not-defined/119305 "2024-09-11T23:53:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phylo\_nick](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@phylo\_nick](https://discourse.julialang.org/u/phylo_nick)
#### Post date: [September 11, 2024, 11:53pm UTC](https://discourse.julialang.org/t/error-undefvarerror-install-not-defined/119305/1 "2024-09-11T23:53:18Z")

</div>

I am trying to get R working in Julia to no avail.

Here is my input:

```julia
using Pkg
Pkg.add("RCall")
using RCall
install.packages("ape", "coda", "RColorBrewer", "fields")

```

Output:

```julia
ERROR: UndefVarError: `install` not defined
Stacktrace:
 [1] top-level scope
   @ REPL[5]:1

```

---

<div class="post-metadata">

### Author: ![dqeeq](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dqeeq](https://discourse.julialang.org/u/dqeeq)
#### Post date: [September 12, 2024, 12:24am UTC](https://discourse.julialang.org/t/error-undefvarerror-install-not-defined/119305/2 "2024-09-12T00:24:39Z")

</div>

Looking at the [manual](https://juliainterop.github.io/RCall.jl/stable/gettingstarted/), one way to call R commands is the [R"" string macro](https://juliainterop.github.io/RCall.jl/stable/gettingstarted/#@R_str-string-macro). For example

```julia
R"rnorm(10)"

```
