This discussion is about a problem that I am facing in R studio

I have installed the package ncdf4, install.packages("ncdf4") then run the library (ncdf4)

I then ran the code ncname <-"oc-glo-bio-multi-14-chl_4km_monthly.nc"
This line of code works

When i type in the code ncin=nc_open (ncname )
The output i receive is error in nc_open(ncname): error in nc_open trying to open file oc-glo-bio-multi-14-chl_4km_monthly.nc (return_on_error=False)

What can be a solution to this problem ?why would i be getting this output ?

Use dir() from the console pane and confirm that this file is in your current working directory.