由买买提看人间百态

topics

全部话题 - 话题: sourcelink
(共0页)
c***z
发帖数: 6348
1
来自主题: Statistics版 - 问一个R的问题
能详解一下么
我倒是找到了一个法子
首先列出目录下的文件和子目录,文件直接下载,子目录调用本函数(递归)
但是下载下来的文件大小不对,大侠能帮忙看看么
library("RCurl")
# ==========================================================================
====
# Function that downloads files from URL
# ==========================================================================
====
fdownload <- function(sourcelink) {
# sourcelink <- ftp.root # test, root level
# sourcelink <- dirs[1] # test, second level
targetlink <- paste(dropbox.root, substr(sourcelink, nchar(ftp.root)+... 阅读全帖
c***z
发帖数: 6348
2
来自主题: Statistics版 - 问一个R的问题
I got a working version now:
#=====================================================================
# Function that downloads files from URL
#=====================================================================
fdownload <- function(sourcelink) {
# sourcelink <- ftp.root # test, root level
# sourcelink <- dirs[1] # test, second level
targetlink <- paste(dropbox.root, substr(sourcelink, nchar(ftp.root)+1,
nchar(sourcelink)), sep = '')

# list of contents
filenames <- getURL(sourceli... 阅读全帖
c***z
发帖数: 6348
3
来自主题: Statistics版 - 再问一个R问题
我发现其实 getURL()就能得到 修改时间
哪位大侠能指点一下怎么parse出 文件名和修改时间呢?
> files <- getURL(sourcelink, ftp.use.epsv = FALSE, dirlistonly = FALSE)
> files <- strsplit(files, "\n")
> files <- unlist(files)
> files
[1] "-r-xr-xr-x 1 owner group 15780895 Mar 26 16:16 2011.q1-q3.
county_high_level.zip"
[2] "-r-xr-xr-x 1 owner group 128178060 Mar 26 17:02 2011.q1-q3.
end.zip"
[3] "dr-xr-xr-x 1 owner group 0 Mar 28 10:05 county"

[4] "dr-... 阅读全帖
c***z
发帖数: 6348
4
来自主题: Statistics版 - 再问一个R问题
我是这么做的,可以获取ftp时间。
但是因为递归,还是不能运行良好。
# list of contents
filestubs <- getURL(sourcelink, ftp.use.epsv = FALSE, dirlistonly = FALSE)
filestubs <- strsplit(filestubs, "\n")
filestubs <- unlist(filestubs)
files <- as.data.frame(filestubs)

# obtain names and modify time
for (i in 1:length(filestubs)) {
# i <- 1
temp <- strsplit(filestubs[i], " ")
temp <- unlist(temp)

temp.name <- temp[length(temp)]
files$name[i] <- temp.name

temp.date <- paste(temp[length... 阅读全帖
g*******e
发帖数: 14
5
If you provide some error or warning message, I might be able to help you.
The dept admin knows unix very well, but not cadence. One way to help yourself
is to login to sourcelink.cadence.com. You need to register in order to get
customer service from cadence. Please obtain hostID from your dept.

m**********e
发帖数: 57
6
来自主题: EE版 - from schematic to layout
I remember that there is an option: do not restructure logic(or similar name
) when you optimize the design. Search SoCE manual, or you can have this
simple question answered with cadence sourcelink. Sorry can not give you
answer, I am away from IC design for 3 years.
(共0页)