I have a file in R , and I do write.csv () but when I go to my desktop and I open the csv file I get data from three columns deleted

You don't need to install any extra packages to be able to write a dataframe to a simple .CSV file on disk.
Its likely that you have some errors in your R code, and that is why you are getting some columns
containing only NA missing values.

Can you post some a sample of the data and the code that you are trying to run? See the "posting guide" of this Forum on how to produce and post a simple Reproducible Example ("reprex").