Skip to content

Unable to Create a FOLDER in BOX from R #271

@hshambaugh

Description

@hshambaugh

Using R STudio
library(boxr)

#create a Box directory.
newFolder <- "NEWFOLDER"
names(newFolder) <- c("name")
newFolders_df <- as.data.frame(t(newFolder))
#--------------------------------------------------------------------------------------------------
FAILS:
box_upload_new(dir_id = "123", file = "C:/Users/Desktop/Test",pb = FALSE)

Error in could not find function "box_upload_new"

#---------------------------------------------------------
ALSO FAILS:
box_dir_create(dir_name = newFolders_df$name, parent_dir_id = box_getwd())

ERROR:
in x$name : $ operator is invalid for atomic vectors

#----------------------------------------------------------
ALSO FAILS:

box_ul(
dir_id = box_getwd(),
file = "C:/Users/Desktop/TEST/TestUpload.txt",
pb = FALSE,
description = NULL
)

ERROR:
in httr::content(ul_req)$status :
$ operator is invalid for atomic vectors
#----------------------------------------------------------
ALSO FAILS - IT does nothing, returns no ERRORS:

box_push(
dir_id = "123",
local_dir = "C:/Users/Desktop/TEST",
ignore_dots = TRUE,
overwrite = FALSE,
delete = FALSE
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions