For a reproducible example of drawing a bounding box for BiH consider this code; it downloads the Bosnia shapefile from gadm.org - so do check their terms & conditions (it is a popular repository and their T&C are not onerous, but...)
The code will return object box
which will be in sfc format, understandable by the package {sf}.
You may find yourself needing the coordinates of the box; you can get them via printing sf::st_coordinates()
of the box object. There are 5 points, that is OK as the first and last point are the same (the square like rectangle is closed = it both starts and ends in the same point / all four sides have to be defined by two points each).
library(dplyr)
library(sf)
# GADM.org data for Bosna i Hercegovina
bosnia <- readRDS(url("https://biogeo.ucdavis.edu/data/gadm3.6/Rsf/gadm36_BIH_0_sf.rds"))
# get the bounding box
box <- st_bbox(bosnia) %>%
st_as_sfc() # makes the box a polygon - much easier to plot
# a visual check
plot(st_geometry(bosnia), col = "blue")
plot(box, border = "red", add = T)

# print coordinates
st_coordinates(box)
X Y L1 L2
[1,] 15.72739 42.56531 1 1
[2,] 19.61471 42.56531 1 1
[3,] 19.61471 45.27468 1 1
[4,] 15.72739 45.27468 1 1
[5,] 15.72739 42.56531 1 1