The goal of square is to square numbers
You can install the development version of square from GitHub with:
# install.packages("devtools")
devtools::install_github("gopalkhanal11/square")
This is a basic example which shows you how to solve a common problem:
library(square)
## basic example code
square(2:4)
#> [1] 4 9 16
x<-1:10
x^2
#> [1] 1 4 9 16 25 36 49 64 81 100